Hello!
The question is this. Increasing the size of the textView using this code:
func textViewDidChange(_ textView: UITextView) { let fixedWidth = textView.frame.size.width textView.sizeThatFits(CGSize(width: fixedWidth, height: CGFloat.greatestFiniteMagnitude)) let newSize = textView.sizeThatFits(CGSize(width: fixedWidth, height: CGFloat.greatestFiniteMagnitude)) var newFrame = textView.frame newFrame.size = CGSize(width: max(newSize.width, fixedWidth), height: newSize.height) textView.frame = newFrame } The text is entered without problems, the cell is enlarged, BUT, the text is for some reason invisible and it becomes visible after turning the screen in any direction, it would be useful if I had an application about secret correspondence and I would have done this feature.
With what it can be connected? And what happens when you rotate the screen? [

