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

# objectiveCValue(for:)

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

## Declaration

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

## Parameters

- `value`: The value to convert.

## Return Value

Return Value value, expressed as the Objective-C type defined by ObjectiveCValue.

## See Also

### Converting between Swift and Objective-C Types

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