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.

Topics

Constants

static var alignAllLeft: NSLayoutFormatOptions

Align all specified interface elements using left on each.

static var alignAllRight: NSLayoutFormatOptions

Align all specified interface elements using right on each.

static var alignAllTop: NSLayoutFormatOptions

Align all specified interface elements using top on each.

static var alignAllBottom: NSLayoutFormatOptions

Align all specified interface elements using bottom on each.

static var alignAllLeading: NSLayoutFormatOptions

Align all specified interface elements using leading on each.

static var alignAllTrailing: NSLayoutFormatOptions

Align all specified interface elements using trailing on each.

static var alignAllCenterX: NSLayoutFormatOptions

Align all specified interface elements using centerX on each.

static var alignAllCenterY: NSLayoutFormatOptions

Align all specified interface elements using centerY on each.

static var alignmentMask: NSLayoutFormatOptions

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

static var directionLeadingToTrailing: NSLayoutFormatOptions

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: NSLayoutFormatOptions

Arrange objects in order from left to right.

static var directionRightToLeft: NSLayoutFormatOptions

Arrange objects in order from right to left.

static var directionMask: NSLayoutFormatOptions

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

Relationships

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software