Post not yet marked as solved
Post marked as unsolved with 0 replies, 678 views
Can anyone have idea..How to solve this issue in iOS13 I am taking screenshot of UITextView content size..Till iOS12 everything is working fine.But issue with iOS13 onwards its not taking full screenshot its cuting..Below is output picture for less than iOS12 and after iOS13. Less than iOS12Below is code iam using for take screenshot of UITextviewUIGraphicsBeginImageContextWithOptions(textView.contentSize, textView.isOpaque, 0.0) let savedContentOffset: CGPoint = textView.contentOffset let savedFrame: CGRect = textView.frame self.textView.frame = CGRect(x: 0, y: 0, width: textView.contentSize.width, height: textView.contentSize.height) textView.layer.render(in: UIGraphicsGetCurrentContext()!) let image = UIGraphicsGetImageFromCurrentImageContext() textView.contentOffset = savedContentOffset textView.frame = savedFrame UIGraphicsEndImageContext()Post question in stackoverflowhttps://stackoverflow.com/questions/58405106/ios13-uitextview-converting-uitextview-to-image-is-not-working-properly-working