A File Provider extension's domain.
- iOS 11.0+
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
You can use domains to partition a file provider's content. When you use domains, a single file provider can act as if multiple file providers were installed, and users can dynamically switch from one domain to another. You can use domains to represent different accounts or locations.
By default, a File Provider extension has no domain. You can register domains by calling the
NSFile class's add(_:completion:) method. A new
NSFile instance is created for each domain that you register. The
domain property indicates which domain the file provider belongs to. Any items returned by that file provider also belong to the domain.