<!--
{
  "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(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts"
    ],
    "preciseIdentifier" : "c:objc(cs)CNLabeledValue(im)labeledValueBySettingLabel:"
  },
  "title" : "settingLabel(_:)"
}
-->

# settingLabel(_:)

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

```
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

A labeled value object with an existing value and 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)