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

# settingLabel(_:)

Returns a labeled value object with an existing value and identifier.

## Declaration

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

## Parameters

- `label`: The label of the copied labeled value object, or nil if the contact property value doesn’t have a label.

## Return Value

Return Value A labeled value object with an existing value and identifier.

## See Also

### Setting labels and values

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