Instance Method

setAffineTransform(_:)

Sets the layer’s transform to the specified affine transform.

Declaration

func setAffineTransform(_ m: CGAffineTransform)

Parameters

m

The affine transform to use for the layer’s transform.

See Also

Managing the Layer’s Transform

var transform: CATransform3D

The transform applied to the layer’s contents. Animatable.

var sublayerTransform: CATransform3D

Specifies the transform to apply to sublayers when rendering. Animatable.

func affineTransform() -> CGAffineTransform

Returns an affine version of the layer’s transform.