One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

EnabledTextSelectability

struct · iOS 15.0+ · SDK 27.1

struct EnabledTextSelectability

A selectability type that enables text selection by the person using your app. Don't use this type directly. Instead, use ``TextSelectability/enabled``.

Members (1)

get · iOS 15.0+

allowsSelection

TypeScript
static get allowsSelection(): boolean
Swift declaration
static let allowsSelection: Bool

A Boolean value that indicates whether the selectability type allows selection. 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.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →