<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactsUI",
  "identifier" : "/documentation/ContactsUI/CNContactViewController/highlightProperty(withKey:identifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Contacts UI"
    ],
    "preciseIdentifier" : "c:objc(cs)CNContactViewController(im)highlightPropertyWithKey:identifier:"
  },
  "title" : "highlightProperty(withKey:identifier:)"
}
-->

# highlightProperty(withKey:identifier:)

Highlights the property of the contact being displayed.

```
func highlightProperty(withKey key: String, identifier: String?)
```

## Parameters

`key`

Key of the property to highlight.

`identifier`

`property` is a multivalue property, the value to highlight.

## Discussion

When a single value property key is specified, identifier will be ignored.

---

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)