The Core Animation layer that the view uses as its backing store.
SDK
- macOS 10.5+
Framework
- App
Kit
Declaration
var layer: CALayer? { get set }
Discussion
Use this property to set or get the layer associated with the view, if any. When set, the layer serves as the backing store for the view’s contents.