---
title: "init(server:panelType:)"
framework: InputMethodKit
role: symbol
role_heading: Initializer
platforms: [macOS 10.5+]
path: "inputmethodkit/imkcandidates/init(server:paneltype:)"
---

# init(server:panelType:)

Returns the initialized IMKCandidates object.

## Declaration

```swift
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

Return Value The initialized IMKCandidates object.

## Discussion

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