Structure

ViewDimensions

A view’s size and its alignment guides in its own coordinate space.

Declaration

struct ViewDimensions

Topics

Getting the Dimensions

var height: CGFloat

The view’s height.

var width: CGFloat

The view’s width.

Accessing Guide Values

subscript(VerticalAlignment) -> CGFloat

Gets the value of the given vertical guide.

subscript(HorizontalAlignment) -> CGFloat

Gets the value of the given horizontal guide.

subscript(explicit: VerticalAlignment) -> CGFloat?

Gets the explicit value of the given alignment guide in this view, or nil if no such value exists.

subscript(explicit: HorizontalAlignment) -> CGFloat?

Gets the explicit value of the given alignment guide in this view, or nil if no such value exists.

Relationships

Conforms To

See Also