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

# accessoryView

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

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

## Parameters

`aView`

The accessory view displayed in the receiver.

## 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`](/documentation/AppKit/NSWindow/didResizeNotification) with the Spelling 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)