---
title: update()
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: inputmethodkit/imkcandidates/update()
---

# update()

Updates the candidates that are displayed in the candidates window.

## Declaration

```swift
func update()
```

## Discussion

Discussion When you call this method, the Input Method Kit  calls the candidates method of the IMKInputController class. Note that the candidates list is updated, but the visible state of the window does not change. In other words, if the window is hidden, it remains hidden. If the window is visible, it remains visible.

## See Also

### Managing Window Visibility and Behavior

- [show(_:)](inputmethodkit/imkcandidates/show(_:).md)
- [hide()](inputmethodkit/imkcandidates/hide().md)
- [isVisible()](inputmethodkit/imkcandidates/isvisible().md)
- [setDismissesAutomatically(_:)](inputmethodkit/imkcandidates/setdismissesautomatically(_:).md)
- [dismissesAutomatically()](inputmethodkit/imkcandidates/dismissesautomatically().md)
