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

# setAttributes(_:)

Sets the style attributes for the candidates window.

## Declaration

```swift
func setAttributes(_ attributes: [AnyHashable : Any]!)
```

## Parameters

- `attributes`: A dictionary that contains keys and values for the styles to use. You can supply the keys and values listed in the following table: | | | | |

## See Also

### Managing Window Type and Text Attributes

- [panelType()](inputmethodkit/imkcandidates/paneltype().md)
- [setPanelType(_:)](inputmethodkit/imkcandidates/setpaneltype(_:).md)
- [attributes()](inputmethodkit/imkcandidates/attributes().md)
