---
title: "value(for:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/objectivecconvertibleattributedstringkey/value(for:)"
---

# value(for:)

Returns a value of this key’s type for a given Objective-C value.

## Declaration

```swift
static func value(for object: Self.ObjectiveCValue) throws -> Self.Value
```

## Parameters

- `object`: The Objective-C value to convert.

## Return Value

Return Value object, expressed as this key’s type.

## See Also

### Converting between Swift and Objective-C Types

- [objectiveCValue(for:)](foundation/objectivecconvertibleattributedstringkey/objectivecvalue(for:).md)
