---
title: "scroll(to:)"
framework: quartzcore
role: symbol
role_heading: Instance Method
path: "quartzcore/cascrolllayer/scroll(to:)-37q0p"
---

# scroll(to:)

Changes the origin of the receiver to the specified point.

## Declaration

```swift
func scroll(to p: CGPoint)
```

## Parameters

- `p`: The new origin.

## See Also

### Scrolling the layer

- [scroll(to:)](quartzcore/cascrolllayer/scroll(to:)-782vd.md)
