---
title: ContactAccessButton.Caption
framework: contactsui
role: symbol
role_heading: Enumeration
path: contactsui/contactaccessbutton/caption
---

# ContactAccessButton.Caption

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

## Declaration

```swift
enum Caption
```

## Overview

Overview Set the caption of a contact access button with the view modifier 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.

## Topics

### Caption options

- [ContactAccessButton.Caption.defaultText](contactsui/contactaccessbutton/caption/defaulttext.md)
- [ContactAccessButton.Caption.email](contactsui/contactaccessbutton/caption/email.md)
- [ContactAccessButton.Caption.phone](contactsui/contactaccessbutton/caption/phone.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
