Structure

NSLayoutConstraint.FormatOptions

A bit mask that specifies both a part of an interface element to align and a direction for the alignment between two interface elements.

Declaration

struct FormatOptions

Topics

Constants

static var alignAllLastBaseline: NSLayoutConstraint.FormatOptions

Align all specified interface elements using the last baseline of each one.

static var alignAllFirstBaseline: NSLayoutConstraint.FormatOptions

Align all specified interface elements using the first baseline of each one.

static var alignmentMask: NSLayoutConstraint.FormatOptions

Bit mask that can be combined with a NSLayoutConstraint.FormatOptions variable to yield only the alignment portion of the format options.

static var directionLeadingToTrailing: NSLayoutConstraint.FormatOptions

Arrange objects in order based on the normal text flow for the current user interface language. In left-to-right languages (like English), this arrangement results in the first object being placed farthest to the left, the next one to its right, and so on. In right-to-left languages (like Arabic or Hebrew), the ordering is reversed.

static var directionLeftToRight: NSLayoutConstraint.FormatOptions

Arrange objects in order from left to right.

static var directionRightToLeft: NSLayoutConstraint.FormatOptions

Arrange objects in order from right to left.

static var directionMask: NSLayoutConstraint.FormatOptions

A bit mask that can be combined with an NSLayoutConstraint.FormatOptions variable to yield only the direction portion of the format options.

static var spacingBaselineToBaseline: NSLayoutConstraint.FormatOptions

Align elements vertically according to their baseline positions.

static var spacingMask: NSLayoutConstraint.FormatOptions

A bit mask that can be combined with an NSLayoutConstraint.FormatOptions variable to yield only the spacing baseline spacing portion of the format options.

Relationships

Conforms To