Instance Method

anchorAttribute(for:)

Returns which part of the window stays stationary during constraint based layout.

Declaration

func anchorAttribute(for orientation: NSLayoutConstraint.Orientation) -> NSLayoutConstraint.Attribute

Parameters

orientation

The attribute for orientation. The possible values are specified in NSLayoutConstraint.Orientation.

Return Value

Returns the layout attribute.

See Also

Constraint-Based Layouts

func setAnchorAttribute(NSLayoutConstraint.Attribute, for: NSLayoutConstraint.Orientation)

Sets which part of the window stays stationary during constrain based layout.