---
title: "settingLabel(_:value:)"
framework: contacts
role: symbol
role_heading: Instance Method
path: "contacts/cnlabeledvalue/settinglabel(_:value:)"
---

# settingLabel(_:value:)

Returns a labeled value object with the specified label and value with the existing identifier.

## Declaration

```swift
func settingLabel(_ label: String?, value: ValueType) -> Self
```

## Parameters

- `label`: The label of the copied labeled value object, or nil if the contact property value doesn’t have a label.
- `value`: 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 A labeled value object with the existing identifier.

## See Also

### Setting labels and values

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