---
title: "setValue(_:forTag:client:)"
framework: InputMethodKit
role: symbol
role_heading: Instance Method
platforms: [macOS 10.5+]
path: "inputmethodkit/imkstatesetting/setvalue(_:fortag:client:)"
---

# setValue(_:forTag:client:)

Set the value for the provided key.

## Declaration

```swift
func setValue(_ value: Any!, forTag tag: Int, client sender: Any!)
```

## Parameters

- `value`: The value, specified as the appropriate object (such as NSNumber), to set.
- `tag`: The key whose value you want to set.
- `sender`: The client setting the value.

## See Also

### Getting and Setting Values

- [value(forTag:client:)](inputmethodkit/imkstatesetting/value(fortag:client:).md)
