Instance Property

isRotatedFromBase

A Boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds.

Declaration

var isRotatedFromBase: Bool { get }

Discussion

The value of this property is true if the view or any of its ancestors has had its frameRotation or boundsRotation properties modified at any time. The value is still true if the rotation factor is changed to a nonzero value and then back to 0.

Use this information to optimize drawing and coordinate calculation. Do not use it to reflect the exact state of the view’s coordinate system.

See Also

Examining Coordinate System Modifications

var isFlipped: Bool

A Boolean value indicating whether the view uses a flipped coordinate system.

var isRotatedOrScaledFromBase: Bool

A Boolean value indicating whether the view or any of its ancestors has ever had a rotation factor applied to its frame or bounds, or has been scaled from the window’s base coordinate system.