<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSView/scroll(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSView(im)scrollPoint:"
  },
  "title" : "scroll(_:)"
}
-->

# scroll(_:)

Scrolls the view’s closest ancestor [`NSClipView`](/documentation/AppKit/NSClipView) object so a point in the view lies at the origin of the clip view’s bounds rectangle.

```
func scroll(_ point: NSPoint)
```

## Parameters

`point`

The point in the view to scroll to.

## See Also

[`-  scrollToPoint:`](/documentation/AppKit/NSClipView/scroll(to:))

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

[`-  isDescendantOf:`](/documentation/AppKit/NSView/isDescendant(of:))

Returns a Boolean value that indicates whether the view is a subview of the specified view.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)