---
title: disabled
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/textselectability/disabled
---

# disabled

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

## Declaration

```swift
static var disabled: DisabledTextSelectability { get }
```

## Discussion

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

- [enabled](swiftui/textselectability/enabled.md)
