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

# scroll(to:)

Scroll the contents of the receiver to ensure that the rectangle is visible.

## Declaration

```swift
func scroll(to r: CGRect)
```

## Parameters

- `r`: The rectangle that should be visible.

## See Also

### Scrolling the layer

- [scroll(to:)](quartzcore/cascrolllayer/scroll(to:)-37q0p.md)
