---
title: "scroll(to:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsclipview/scroll(to:)"
---

# scroll(to:)

Changes the origin of the clip view’s bounds rectangle to newOrigin.

## Declaration

```swift
func scroll(to newOrigin: NSPoint)
```

## See Also

### Scrolling

- [autoscroll(with:)](appkit/nsclipview/autoscroll(with:).md)
- [constrainScroll(_:)](appkit/nsclipview/constrainscroll(_:).md)
- [constrainBoundsRect(_:)](appkit/nsclipview/constrainboundsrect(_:).md)
