---
title: "init(domain:)"
framework: fileprovider
role: symbol
role_heading: Initializer
path: "fileprovider/nsfileproviderreplicatedextension/init(domain:)"
---

# init(domain:)

Creates an instance of the file provider for the specified domain.

## Declaration

```swift
init(domain: NSFileProviderDomain)
```

## Parameters

- `domain`: The domain for the file provider.

## See Also

### Creating and Removing File Providers

- [invalidate()](fileprovider/nsfileproviderreplicatedextension/invalidate().md)
