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

# cut(_:)

Removes the selected content and writes the data for it to the pasteboard.

## Declaration

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

## Parameters

- `sender`: The object calling this method.

## Mentioned in

Using responders and the responder chain to handle events

## Discussion

Discussion UIKit calls this method when the user selects the Cut command from an editing menu. Your implementation should write the selected content to the pasteboard and then remove it from your interface.

## See Also

### Handling copy, cut, paste, and delete commands

- [copy(_:)](uikit/uiresponderstandardeditactions/copy(_:).md)
- [paste(_:)](uikit/uiresponderstandardeditactions/paste(_:).md)
- [pasteAndGo(_:)](uikit/uiresponderstandardeditactions/pasteandgo(_:).md)
- [pasteAndMatchStyle(_:)](uikit/uiresponderstandardeditactions/pasteandmatchstyle(_:).md)
- [pasteAndSearch(_:)](uikit/uiresponderstandardeditactions/pasteandsearch(_:).md)
- [delete(_:)](uikit/uiresponderstandardeditactions/delete(_:).md)
