<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKCandidates/init(server:panelType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(cs)IMKCandidates(im)initWithServer:panelType:"
  },
  "title" : "init(server:panelType:)"
}
-->

# init(server:panelType:)

Returns the initialized `IMKCandidates` object.

```
init!(server: IMKServer!, panelType: IMKCandidatePanelType)
```

## Parameters

`server`

The `IMKServer` object that manages the candidate and the panel type.

`panelType`

A panel type for the candidate window.

## Return Value

The initialized `IMKCandidates` object.

## Discussion

When an input method allocates an `IMKCandidates` object it should initialize that object by calling this method.

---

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)