---
title: "scrollRangeToVisible(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextfinderclient/scrollrangetovisible(_:)"
---

# scrollRangeToVisible(_:)

Scrolls the specified range such that it is visible.

## Declaration

```swift
optional func scrollRangeToVisible(_ range: NSRange)
```

## Parameters

- `range`: The range to display.

## Discussion

Discussion This method is used by all actions, but is not strictly required by any.

## See Also

### Determining and Displaying Text Locations

- [contentView(at:effectiveCharacterRange:)](appkit/nstextfinderclient/contentview(at:effectivecharacterrange:).md)
- [rects(forCharacterRange:)](appkit/nstextfinderclient/rects(forcharacterrange:).md)
- [visibleCharacterRanges](appkit/nstextfinderclient/visiblecharacterranges.md)
