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

# value(forTag:client:)

Returns a value object whose key is the provided tag.

## Declaration

```swift
func value(forTag tag: Int, client sender: Any!) -> Any!
```

## Parameters

- `tag`: The key whose value you want to retrieve.
- `sender`: The client requesting the value.

## Return Value

Return Value The value object.

## See Also

### Getting and Setting Values

- [setValue(_:forTag:client:)](inputmethodkit/imkstatesetting/setvalue(_:fortag:client:).md)
