static var enabled: EnabledTextSelectability
A selectability value that enables text selection by a person using your app.
Available when
Self
is EnabledTextSelectability
.Availability 有効性
Technology
static var disabled: DisabledTextSelectability
{ get }
Self
is DisabledTextSelectability
.Use this property to disable text selection of views that you don’t want people to select and copy, even if contained within an overall context that allows text selection.
content // Content that might contain Text views.
.textSelection(.disabled)
.padding()
.contentShape(Rectangle())
.gesture(someGesture)
static var enabled: EnabledTextSelectability
Self
is EnabledTextSelectability
.