I'm having a weird problem with iOS 10, Swift 3. The UITextView sometimes get "stuck". With "stuck" I mean the text inside of it gets cut, so only a part of it is visible. When this happens, the UITextView is not scrollable.
In the storyboard I have pinned it to the edges.
The code related to the view:
override func viewDidLoad() {
...
lyricsTextView.text = song.lyrics
lyricsTextView.font = UIFont(name: "Avenir-Roman", size: 15)
lyricsTextView.textAlignment = .center
...
override func viewDidLayoutSubviews() {
lyricsTextView.setContentOffset(CGPoint.zero, animated: false)
}
I had no issues with iOS 9, and it only occurs on my real device, not in the simulator.
Anyone experienced anything similar?
Thanks!
EDIT:
It now appeared in the simulator as well!