Contents

position

The layer’s position in its superlayer’s coordinate space. Animatable.

Declaration

var position: CGPoint { get set }

Discussion

The value of this property is specified in points and is always specified relative to the value in the anchorPoint property. For new standalone layers, the default position is set to (0.0, 0.0). Changing the frame property also updates the value in this property.

For more information about the relationship between the frame, bounds, anchorPoint and position properties, see Core Animation Programming Guide.

See Also

Modifying the layer geometry