<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactsUI",
  "identifier" : "/documentation/ContactsUI/ContactAccessButton/Caption",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Contacts UI"
    ],
    "preciseIdentifier" : "s:10ContactsUI19ContactAccessButtonV7CaptionO"
  },
  "title" : "ContactAccessButton.Caption"
}
-->

# ContactAccessButton.Caption

A list of access options to display in the contact access button when matching a contact’s name.

```
enum Caption
```

## Overview

Set the caption of a contact access button with the view modifier
<doc://com.apple.documentation/documentation/SwiftUI/View/contactAccessButtonCaption(_:)>.
When the query produces a single result, the content access button shows the
the caption under the matching contact name. For example, a search for `Anne`
could show a button that displays the matching name “Anne Johnson” with a
caption line of “annejohnson1@icloud.com” when the caption type is
[`ContactAccessButton.Caption.email`](/documentation/ContactsUI/ContactAccessButton/Caption/email).

## Topics

### Caption options

[`case defaultText`](/documentation/ContactsUI/ContactAccessButton/Caption/defaultText)

A caption option that displays a default value.

[`case email`](/documentation/ContactsUI/ContactAccessButton/Caption/email)

A caption option that displays an email address for the contact.

[`case phone`](/documentation/ContactsUI/ContactAccessButton/Caption/phone)

A caption option that displays a phone number for the contact.

### Working with raw values

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Hashable`](/documentation/Swift/Hashable)

[`Escapable`](/documentation/Swift/Escapable)

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

---

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)