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

# init(identifier:displayName:pathRelativeToDocumentStorage:)

Returns a newly instantiated domain.

## Declaration

```swift
init(identifier: NSFileProviderDomainIdentifier, displayName: String, pathRelativeToDocumentStorage: 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.
- `pathRelativeToDocumentStorage`: A path relative to the file provider extension’s doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderExtension/documentStorageURL that the system uses to store the domain’s content.

## See Also

### Creating domains

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