I hope you all are safe.
I know this question asked several times but not getting a perfect answer.
I just wanted to capture an image from UIView with high resolution the main this is that image should not be a blur.
I have tried this code
extension UIView {
func asImage() -> UIImage {
let renderer = UIGraphicsImageRenderer(size: self.bounds.size)
let capturedImage = renderer.image {
(ctx) in
self.drawHierarchy(in: self.bounds, afterScreenUpdates: true)
}
return capturedImage
}
}
Right now while I capture the image and zoom the text is blurred.
Thanks in advance
Edited I am trying to create high-resolution image from UIView. When I zoom 1 part of image the text is blurred.
Please check below image