<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderExtension/domain",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "File Provider",
      "FileProvider"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileProviderExtension(py)domain"
  },
  "title" : "domain"
}
-->

# domain

The domain managed by this file provider object.

```
var domain: NSFileProviderDomain? { get }
```

## Discussion

If the File Provider extension does not use domains, this property is set to `nil`. By default, a File Provider extension does not have any domains.

A new [`NSFileProviderExtension`](/documentation/FileProvider/NSFileProviderExtension) object is created for each domain added to the File Provider manager. The new File Provider’s [`domain`](/documentation/FileProvider/NSFileProviderExtension/domain) property is set to the added domain, and any items returned by the File Provider belong to that domain.

---

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)