---
title: updatePanels()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsspellchecker/updatepanels()
---

# updatePanels()

Updates the available panels to account for user changes.

## Declaration

```swift
func updatePanels()
```

## Discussion

Discussion This method should be called when a client changes some relevant setting, such as what kind of spelling, grammar checking, or substitutions it uses.

## See Also

### Managing Panels

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