Post

Replies

Boosts

Views

Activity

UITextView.scrollRangeToVisible() broken
Depending on the amount of text in the textView, the following can cause the textView to go completely blank or scroll to a location in the middle of the text and prevent the user from scrolling to the end of the text. let nsRange = NSMakeRange(textView.text!.count - 1, 1) textView.scrollRangeToVisible(nsRange) I'm looking for a workaround to do the simplest thing in the world: scroll the damn textView to the bottom.
9
0
3.2k
May ’23
UITextView.scrollRangeToVisible() broken
Depending on the amount of text in the textView, the following can cause the textView to go completely blank or scroll to a location in the middle of the text and prevent the user from scrolling to the end of the text. let nsRange = NSMakeRange(textView.text!.count - 1, 1) textView.scrollRangeToVisible(nsRange) I'm looking for a workaround to do the simplest thing in the world: scroll the damn textView to the bottom.
Replies
9
Boosts
0
Views
3.2k
Activity
May ’23