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

# settingValue(_:)

Returns a new value for an existing label and identifier.

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

## Parameters

`value`

A new value for the copied labeled value object. For valid values, see [`CNContact`](/documentation/Contacts/CNContact) properties that are arrays of labeled value objects.

## Return Value

The [`CNLabeledValue`](/documentation/Contacts/CNLabeledValue) object with an existing label 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)