<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactProvider",
  "identifier" : "/documentation/ContactProvider/ContactProviderManager/init(domainIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ContactProvider"
    ],
    "preciseIdentifier" : "s:15ContactProvider0aB7ManagerC16domainIdentifierACSS_tKcfc"
  },
  "title" : "init(domainIdentifier:)"
}
-->

# init(domainIdentifier:)

Creates a provider manager.

```
init(domainIdentifier: String = DefaultContactProviderDomain.identifier) throws
```

## Parameters

`domainIdentifier`

A string to identify a domain of contacts to provide. Defaults to [`identifier`](/documentation/ContactProvider/DefaultContactProviderDomain/identifier).

## Discussion

If needed, the manager registers the [`DefaultContactProviderDomain`](/documentation/ContactProvider/DefaultContactProviderDomain) for the extension.

> Throws: ``doc://com.apple.ContactProvider/documentation/ContactProvider/ContactProviderError/extensionNotFound`` if discovering the extension fails.

> Throws: ``doc://com.apple.ContactProvider/documentation/ContactProvider/ContactProviderError/featureNotAvailable`` when running on an unsupported platform.

---

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)