---
title: "init(identifier:displayName:)"
framework: fileprovider
role: symbol
role_heading: Initializer
path: "fileprovider/nsfileproviderdomain/init(identifier:displayname:)"
---

# init(identifier:displayName:)

Creates a new file provider domain with the specified identifier and display name.

## Declaration

```swift
init(identifier: NSFileProviderDomainIdentifier, displayName: String)
```

## Parameters

- `identifier`: A string that identifies the domain. The file provider extension can select any string to uniquely identify the domain, as long as it doesn’t contain the colon (:) or slash (/) symbols.
- `displayName`: The name for the domain that the system shows to the user.

## See Also

### Creating domains

- [init(identifier:displayName:pathRelativeToDocumentStorage:)](fileprovider/nsfileproviderdomain/init(identifier:displayname:pathrelativetodocumentstorage:).md)
- [NSFileProviderDomainIdentifier](fileprovider/nsfileproviderdomainidentifier.md)
- [init(displayName:userInfo:volumeURL:)](fileprovider/nsfileproviderdomain/init(displayname:userinfo:volumeurl:).md)
