I have UITextView with disabled scrolling. I need to change maximumNumberOfLines programmatically and see updates on UI after this. UITextView uses auto layout.
textView.textContainer.maximumNumberOfLines = 0
This should make visible the whole text from the textView on UI.
P.S. Similar questions were asked many times but the answer that works for me I haven't found.