Contents

frame

The element’s unrotated frame.

Declaration

var frame: CGRect { get set }

Discussion

Together with rotation this defines the element’s position in its parent. This won’t necessarily contain all the contents of an element, rotation and styling may cause the element to extend beyond this frame. Use renderFrame for an unrotated frame that contains the entire element.

See Also

Laying out