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

# showAnnotation(_:)

Displays an annotation string in an annotation window.

## Declaration

```swift
func showAnnotation(_ annotationString: NSAttributedString!)
```

## Parameters

- `annotationString`: The string to display.

## Discussion

Discussion An annotation string explains or comments on the candidate string in the candidates window. An annotation window is a small, borderless window that is aligned with the current candidates window. An input method calls showAnnotation: when the candidateSelectionChanged: method of the IMKInputController class is called, and the candidate string has annotations.
