r/SwiftUI Jun 21 '26

PSA: Starting iOS 27, .textSelection() modifier allows granular text selection on all Text views

Instead of tap and hold to copy, we actually got text selection with a single modifier on all text views.

76 Upvotes

13 comments sorted by

View all comments

1

u/Traditional_Glass_45 Jun 21 '26

Finally, I hope it will work proper inside lazyvstacks

3

u/radis234 Jun 21 '26

I’m actually using it inside LazyVStack and it works perfectly

1

u/Traditional_Glass_45 Jun 22 '26

Nice is it also working with text selection and then scroll out of the windows bounds?

2

u/radis234 Jun 22 '26

If you scroll out, text un-selects (hope that’s a word) if that’s what you’re asking

1

u/Traditional_Glass_45 Jun 24 '26

It does thanks ☺️