---
title: accessoryView
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsspellchecker/accessoryview
---

# accessoryView

Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view.

## Declaration

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

## Parameters

- `aView`: The accessory view displayed in the receiver.

## Discussion

Discussion The accessory view can be any custom view you want to display with the spelling panel. The accessory view is displayed below the spelling checker and the panel automatically resizes to accommodate the accessory view. This method posts a notification named didResizeNotification with the Spelling 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)
- [substitutionsPanelAccessoryViewController](appkit/nsspellchecker/substitutionspanelaccessoryviewcontroller.md)
