Contents

layoutAttribute

The location of the accessory view, in relation to the window’s title bar.

Declaration

var layoutAttribute: NSLayoutConstraint.Attribute { get set }

Discussion

The default value of this property is NSLayoutConstraint.Attribute.bottom, which means that the accessory view should display below the title bar. You can also set this property to NSLayoutConstraint.Attribute.right or (in apps linked on macOS 10.11 or later) NSLayoutConstraint.Attribute.left. All other values are invalid and will cause an assertion to be raised.

See Also

Configuring a title bar accessory view controller