<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Contacts",
  "identifier" : "/documentation/Contacts/CNLabeledValue/settingLabel(_:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNLabeledValue(im)labeledValueBySettingLabel:value:"
  },
  "title" : "settingLabel(_:value:)"
}
-->

# settingLabel(_:value:)

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

```
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 [`CNContact`](/documentation/Contacts/CNContact) properties that are arrays of labeled value objects.

## Return Value

A labeled value object with the existing identifier.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)