I tried to do this the same way as I'm doing it with a UITextField
:
textView.selectedTextRange = textView.textRange(from: textView.beginningOfDocument, to: textView.endOfDocument)
What am I doing wrong?
I tried to do this the same way as I'm doing it with a UITextField
:
textView.selectedTextRange = textView.textRange(from: textView.beginningOfDocument, to: textView.endOfDocument)
What am I doing wrong?
Copyright © 2021 Jogjafile Inc.
You should make the text field the first responder before selecting it:
...or, better yet, just call
selectAll
: