---
title: enable()
framework: ContactProvider
role: symbol
role_heading: Instance Method
platforms: [iOS 18.0+, iPadOS 18.0+]
path: contactprovider/contactprovidermanager/enable()
---

# enable()

Requests the person using the app to enable the extension domain.

## Declaration

```swift
func enable() async throws
```

## Discussion

Discussion If necessary, this call waits for the person using the app to explicitly approve or deny using the extension domain. note: ContactProviderError.deniedByUser if the person dismisses the prompt without enabling the extension domain.

## See Also

### Managing the domain

- [domain](contactprovider/contactprovidermanager/domain.md)
- [isEnabled](contactprovider/contactprovidermanager/isenabled.md)
- [reset()](contactprovider/contactprovidermanager/reset().md)
- [disable()](contactprovider/contactprovidermanager/disable().md)
