---
title: "contactPickerDidCancel(_:)"
framework: contactsui
role: symbol
role_heading: Instance Method
path: "contactsui/cncontactpickerdelegate/contactpickerdidcancel(_:)"
---

# contactPickerDidCancel(_:)

In iOS, called when the user taps Cancel.

## Declaration

```swift
optional func contactPickerDidCancel(_ picker: CNContactPickerViewController)
```

## Parameters

- `picker`: The contact picker in which the selection was made.

## Discussion

Discussion The picker is dismissed automatically after a contact or property is picked.

## See Also

### Dismissing the Picker Interface

- [contactPickerWillClose(_:)](contactsui/cncontactpickerdelegate/contactpickerwillclose(_:).md)
- [contactPickerDidClose(_:)](contactsui/cncontactpickerdelegate/contactpickerdidclose(_:).md)
