---
title: "setDelegate(_:)"
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: "inputmethodkit/imkinputcontroller/setdelegate(_:)"
---

# setDelegate(_:)

Sets the delegate for input controller  object.

## Declaration

```swift
func setDelegate(_ newDelegate: Any!)
```

## Parameters

- `newDelegate`: The delegate object to set.

## See Also

### Managing the Delegate

- [delegate()](inputmethodkit/imkinputcontroller/delegate().md)
