Contents

AppExtensionPoint.Scope

A type that regulates which app extensions may access an extension point.

Declaration

struct Scope

Overview

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 AppExtensionPoint.Scope.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)
    }
}

Topics

Creating a scope attribute

See Also

Declaring an extension point