---
title: "copy(_:)"
framework: pdfkit
role: symbol
role_heading: Instance Method
path: "pdfkit/pdfview/copy(_:)"
---

# copy(_:)

Copies the text in the selection, if any, to the Pasteboard.

## Declaration

```swift
@IBAction func copy(_ sender: Any?)
```

## See Also

### Handling Selections

- [currentSelection](pdfkit/pdfview/currentselection.md)
- [setCurrentSelection(_:animate:)](pdfkit/pdfview/setcurrentselection(_:animate:).md)
- [selectAll(_:)](pdfkit/pdfview/selectall(_:).md)
- [clearSelection()](pdfkit/pdfview/clearselection().md)
- [scrollSelectionToVisible(_:)](pdfkit/pdfview/scrollselectiontovisible(_:).md)
- [highlightedSelections](pdfkit/pdfview/highlightedselections.md)
