---
title: "selectAll(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiresponderstandardeditactions/selectall(_:)"
---

# selectAll(_:)

Selects all of the content in the current responder.

## Declaration

```swift
optional func selectAll(_ sender: Any?)
```

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion UIKit calls this method when the user selects the Select All command from an editing menu. The command selects all content in the responder. For example, a text view selects all of its text and displays an appropriate selection interface.

## See Also

### Handling selection commands

- [select(_:)](uikit/uiresponderstandardeditactions/select(_:).md)
