---
title: scrollMode
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cascrolllayer/scrollmode
---

# scrollMode

Defines the axes in which the layer may be scrolled.

## Declaration

```swift
var scrollMode: CAScrollLayerScrollMode { get set }
```

## Discussion

Discussion The possible values are described in Scroll Modes. The default is both.

## See Also

### Related Documentation

- [Core Animation Programming Guide](apple-archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction.md)
