One Logo Pool Ball
ExtensionFoundation · IOS API REFERENCE

AppExtensionPoint.Scope

struct · iOS 26.0+ · SDK 27.1

struct Scope

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) } } ```

Members (1)

init · iOS 26.0+

init

TypeScript
static init(restriction?: AppExtensionPoint_Scope_Restriction): AppExtensionPoint_Scope
Swift declaration
init(restriction: AppExtensionPoint.Scope.Restriction = .application)

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.

Skipped declarations

No declarations were skipped in this snapshot.

All ExtensionFoundation types →