Instance Method

makeBackingLayer()

Creates the view’s backing layer.

Declaration

@objc override dynamic func makeBackingLayer() -> CALayer

See Also

Managing the View

var frame: NSRect

The frame rectangle, which describes the view’s location and size in the coordinate system of the view’s superview.

var contentScaleFactor: CGFloat

The scale factor of the content in the view.

func didMoveToSuperview()

Tells the view that its superview changed.

func didMoveToWindow()

Tells the view that its window property is set to a new value.

func layoutSubviews()

Lays out subviews.

class var layerClass: AnyClass

The class used to create the layer for view instances.

func viewDidChangeBackingProperties()

Tells the view when its backing store properties change.

func viewDidMoveToSuperview()

Tells the view that it has a new superview or that the view’s superview has been removed.