A type that regulates which app extensions may access an extension point.
Add a `Scope` type to your extension point definition to restrict the set of app extensions
that may bind to the host app. If you don’t include this type in your definition, the default
behavior requires app extensions to reside inside the host app. Configure this type with the
``Restriction/none`` option to allow app extensions from outside the host app to connect as well. The
following example shows an extension point definition that allows all app extensions to connect,
including ones outside the host app:
```
extension AppExtensionPoint {
@Definition
static var MyGlobalFeature : AppExtensionPoint {
Name(“MyGlobalFeature”)
UserInterface(false)
Scope(.none)
}
}
```
Initializes the scope type with the specified restriction value.
- Parameters:
- restriction: The binding restriction for app extensions. If you don’t specify a
value, only app extensions inside the host app may bind to it.