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

# scrollRangeToVisible(_:)

Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible.

## Declaration

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