Sunday, 5 January 2020

How do I allow text selection on a Text view in SwiftUI?

When I create a text view:

Text("Hello World")

I can't allow the user to select text when they long press.

I've looked at using a TextField but that doesn't seem to allow for turning off text editing.

I just want to be able to display a body of text and allow the user to highlight a selection using the system text selector.

Thanks!



from How do I allow text selection on a Text view in SwiftUI?

No comments:

Post a Comment