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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software