---
title: CAScrollLayer
framework: quartzcore
role: symbol
role_heading: Class
path: quartzcore/cascrolllayer
---

# CAScrollLayer

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

## Declaration

```swift
class CAScrollLayer
```

## Overview

Overview The CAScrollLayer class is a subclass of CALayer that simplifies displaying a portion of a layer. The extent of the scrollable area of the 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 does not provide keyboard or mouse event-handling, nor does it provide visible scrollers.

## Topics

### Scrolling constraints

- [scrollMode](quartzcore/cascrolllayer/scrollmode.md)

### Scrolling the layer

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

### Constants

- [Scroll Modes](quartzcore/scroll-modes.md)

## Relationships

### Inherits From

- [CALayer](quartzcore/calayer.md)

### Conforms To

- [CAMediaTiming](quartzcore/camediatiming.md)
- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Advanced Layer Options

- [CATiledLayer](quartzcore/catiledlayer.md)
- [CATransformLayer](quartzcore/catransformlayer.md)
- [CAReplicatorLayer](quartzcore/careplicatorlayer.md)
