Instance Property

view

Returns the view associated with the layer.

Declaration

weak var view: NSView? { get set }

Discussion

Subclasses shouldn't invoke setView:, but can override it if desired to intercept the layer's association to, or dissociation from, a view.