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

# substitutionsPanelAccessoryViewController

Sets the substitutions panel’s accessory view.

```
var substitutionsPanelAccessoryViewController: NSViewController? { get set }
```

## Parameters

`accessoryController`

The accessory view controller or `nil` if there is none.

## Discussion

The accessory view controller can accommodate any custom view you want to display with the substitutions panel. The accessory view controller’s view is displayed below the substitutions list and the panel automatically resizes to accommodate the accessory view.

This method posts a notification named  [`didResizeNotification`](/documentation/AppKit/NSWindow/didResizeNotification) with the substitutions panel object to the default notification center.

---

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)