<!--
{
  "availability" : [
    "macOS: 10.13.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindowTab/accessoryView",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindowTab(py)accessoryView"
  },
  "title" : "accessoryView"
}
-->

# accessoryView

An optional accessory view for the tab.

```
var accessoryView: NSView? { get set }
```

## Discussion

You can customize the window tab by adding an accessory view that displays alongside the tab’s title.

The [`translatesAutoresizingMaskIntoConstraints`](/documentation/AppKit/NSView/translatesAutoresizingMaskIntoConstraints) property is automatically set to <doc://com.apple.documentation/documentation/Swift/false> on the view. Constraints can be created and activated to specify the view’s width and height values. A constraint is automatically added to vertically center the view, and to right align the view within the tab.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)