<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CAScrollLayer",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CAScrollLayer"
  },
  "title" : "CAScrollLayer"
}
-->

# CAScrollLayer

A layer that displays scrollable content larger than its own bounds.

```
class CAScrollLayer
```

## Overview

The [`CAScrollLayer`](/documentation/QuartzCore/CAScrollLayer) class is a subclass of [`CALayer`](/documentation/QuartzCore/CALayer) that simplifies displaying a portion of a layer. The extent of the scrollable area of the [`CAScrollLayer`](/documentation/QuartzCore/CAScrollLayer) is defined by the layout of its sublayers. The visible portion of the layer content is set by specifying the origin as a point or a rectangular area of the contents to be displayed. [`CAScrollLayer`](/documentation/QuartzCore/CAScrollLayer) does not provide keyboard or mouse event-handling, nor does it provide visible scrollers.

## Topics

### Scrolling constraints

[`scrollMode`](/documentation/QuartzCore/CAScrollLayer/scrollMode)

Defines the axes in which the layer may be scrolled.

### Scrolling the layer

[`scroll(to:)`](/documentation/QuartzCore/CAScrollLayer/scroll(to:)-37q0p)

Changes the origin of the receiver to the specified point.

[`scroll(to:)`](/documentation/QuartzCore/CAScrollLayer/scroll(to:)-782vd)

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

### Constants

[Scroll Modes](/documentation/QuartzCore/scroll-modes)

These constants describe the supported scroll modes used by the [`scrollMode`](/documentation/QuartzCore/CAScrollLayer/scrollMode) property.



---

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)