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

# select(_:)

Selects the content in your responder.

## Declaration

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

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion UIKit calls this method when the user selects the Select command from an editing menu. The command is used for the targeted selection of content in a view. For example, a text view uses this to select one or more words in the view and to display the selection interface.

## See Also

### Handling selection commands

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