Instance Property

size

Returns the width and height of a layer object.

Declaration

var size: CGSize { get }

Parameters

layer

The layer whose width and height you want to obtain.

Return Value

The width and height of the layer, in default user space coordinates.

See Also

Examining a Layer

var context: CGContext?

Returns the graphics context associated with a layer object.