---
title: TextSelectability
framework: swiftui
role: symbol
role_heading: Protocol
path: swiftui/textselectability
---

# TextSelectability

A type that describes the ability to select text.

## Declaration

```swift
protocol TextSelectability
```

## Overview

Overview To configure whether people can select text in your app, use the textSelection(_:) modifier, passing in a text selectability value like enabled or disabled.

## Topics

### Getting selectability options

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

### Specifying selectability

- [allowsSelection](swiftui/textselectability/allowsselection.md)

### Supporting types

- [EnabledTextSelectability](swiftui/enabledtextselectability.md)
- [DisabledTextSelectability](swiftui/disabledtextselectability.md)

## Relationships

### Conforming Types

- [DisabledTextSelectability](swiftui/disabledtextselectability.md)
- [EnabledTextSelectability](swiftui/enabledtextselectability.md)

## See Also

### Selecting text

- [textSelection(_:)](swiftui/view/textselection(_:).md)
- [TextSelection](swiftui/textselection.md)
- [textSelectionAffinity(_:)](swiftui/view/textselectionaffinity(_:).md)
- [textSelectionAffinity](swiftui/environmentvalues/textselectionaffinity.md)
- [TextSelectionAffinity](swiftui/textselectionaffinity.md)
- [AttributedTextSelection](swiftui/attributedtextselection.md)
