Type Property 型プロパティ

disabled

A selectability value that disables text selection by the person using your app.

Declaration 宣言

static var disabled: DisabledTextSelectability { get }
Available when Self is DisabledTextSelectability.

Discussion 議論

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)

See Also 参照

Getting Selectability Options