---
title: "settingValue(_:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnlabeledvalue/settingvalue(_:)"
---

# settingValue(_:)

Returns a new value for an existing label and identifier.

## Declaration

```swift
func settingValue(_ value: ValueType) -> Self
```

## Parameters

- `value`: A new value for the copied labeled value object. For valid values, see doc://com.apple.contacts/documentation/Contacts/CNContact properties that are arrays of labeled value objects.

## Return Value

Return Value The CNLabeledValue object with an existing label and identifier.

## See Also

### Setting labels and values

- [settingLabel(_:)](contacts/cnlabeledvalue/settinglabel(_:).md)
- [settingLabel(_:value:)](contacts/cnlabeledvalue/settinglabel(_:value:).md)
