allowsSelection
A Boolean value that indicates whether the selectability type allows selection.
Declaration
static var allowsSelection: Bool { get }Discussion
Conforming types, such as EnabledTextSelectability and DisabledTextSelectability, return true or false for this property as appropriate. SwiftUI expects this value for a given selectability type to be constant, unaffected by global state.