Instance Property


A scaling factor that multiplies the height of a node and its children.


var yScale: CGFloat { get set }


The yScale property scales the height of the node and all of its descendants. The scale value affects how a node’s frame is calculated, its hit test area, how it is drawn, and other similar characteristics. The default value is 1.0.

See Also

Scaling and Rotating

var zRotation: CGFloat

The Euler rotation about the z axis (in radians).

func setScale(CGFloat)

Sets the xScale and yScale properties of the node.

var xScale: CGFloat

A scaling factor that multiplies the width of a node and its children.

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