How to select Text in SwiftUI on macOS

I have (inside a VStack) an HStack, which contains a few Texts.
Displays nicely.
But: I cannot select this line of text (and by implication: cannot copy the line).

Before SwiftUI I would have used an NSTextField with isSelectable = true.

How can this be done in SwiftUI ?


1 Like
Terms of Service

Privacy Policy

Cookie Policy