---
title: substitutionsPanelAccessoryViewController
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsspellchecker/substitutionspanelaccessoryviewcontroller
---

# substitutionsPanelAccessoryViewController

Sets the substitutions panel’s accessory view.

## Declaration

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

## Parameters

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

## Discussion

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 with the substitutions panel object to the default notification center.

## See Also

### Managing Panels

- [spellingPanel](appkit/nsspellchecker/spellingpanel.md)
- [substitutionsPanel](appkit/nsspellchecker/substitutionspanel.md)
- [updateSpellingPanel(withGrammarString:detail:)](appkit/nsspellchecker/updatespellingpanel(withgrammarstring:detail:).md)
- [updatePanels()](appkit/nsspellchecker/updatepanels().md)
- [accessoryView](appkit/nsspellchecker/accessoryview.md)
