Instance Method

setAnchorAttribute(_:for:)

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

Declaration

func setAnchorAttribute(_ attr: NSLayoutConstraint.Attribute, for orientation: NSLayoutConstraint.Orientation)

Parameters

attr

The layout attribute. The possible values are specified in NSLayoutConstraint.Attribute.

orientation

The window drag orientation. The possible values are specified in NSLayoutConstraint.Orientation.

See Also

Constraint-Based Layouts

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

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