---
title: layoutAttribute
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstitlebaraccessoryviewcontroller/layoutattribute
---

# layoutAttribute

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

## Declaration

```swift
var layoutAttribute: NSLayoutConstraint.Attribute { get set }
```

## Discussion

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. note: In an app linked on macOS 10.11 or later, setting layoutAttribute to NSLayoutConstraint.Attribute.right does not right indent toolbar items unless the window’s titleVisibility property is equal to NSWindow.TitleVisibility.hidden.

## See Also

### Configuring a title bar accessory view controller

- [fullScreenMinHeight](appkit/nstitlebaraccessoryviewcontroller/fullscreenminheight.md)
