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

# scrollSelectionToVisible(_:)

Scrolls the view until the selection is visible.

## Declaration

```swift
@IBAction func scrollSelectionToVisible(_ 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)
- [copy(_:)](pdfkit/pdfview/copy(_:).md)
- [highlightedSelections](pdfkit/pdfview/highlightedselections.md)
