Post

Replies

Boosts

Views

Activity

Reply to Read only yet selectable text in SwiftUI
Extra info when I added this modifier Xcode suggested the following for backwards compatibility for older iOS devices. Text("To be, or not to be, that is the question:") if #available(iOS 15.0, *) { Text("To be, or not to be, that is the question:").textSelection(.enabled) } else { // Fallback on earlier versions }
Oct ’21