<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "InputMethodKit",
  "identifier" : "/documentation/InputMethodKit/IMKStateSetting/value(forTag:client:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "InputMethodKit"
    ],
    "preciseIdentifier" : "c:objc(pl)IMKStateSetting(im)valueForTag:client:"
  },
  "title" : "value(forTag:client:)"
}
-->

# value(forTag:client:)

Returns a value object whose key is the provided tag.

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

The value object.

---

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)