A layer that displays scrollable content larger than its own bounds.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- Core Animation
CAScroll class is a subclass of
CALayer that simplifies displaying a portion of a layer. The extent of the scrollable area of the
CAScroll 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.
CAScroll does not provide keyboard or mouse event-handling, nor does it provide visible scrollers.