One Logo Pool Ball
ExtensionFoundation · IOS API REFERENCE

AppExtensionPoint.Bind

struct · iOS 26.0+ · SDK 27.1

@resultBuilder struct Bind

A property wrapper that binds an app extension to an extension point of a host app. Apply this property wrapper to a variable that contains an ``AppExtensionPoint`` type. Use the variable to define the extension point that your app extension supports. An app extension can bind to only one extension point in a host app. When configuring the ``AppExtensionPoint`` type for your variable, specify the host app and extension point details using an ``AppExtensionPoint/Identifier`` type. The following example shows how to create the variable in your app extension, specify the extension point you want, and create the binding: ``` struct MyAppExtension: AppExtension { @AppExtensionPoint.Bind var extensionPoint: AppExtensionPoint { AppExtensionPoint.Identifier("com.example.hostapp”, name “HostAppFeature”) } } ``` To ensure the system discovers your app extension’s bindings, add a user-defined build setting to your app extension target in Xcode. Set the build setting name to `EX_ENABLE_EXTENSION_POINT_GENERATION` and configure it with a value of `YES`. When this setting is present, the compiler places the necessary binding information in your app extension's `Info.plist` file.

Members (2)

static · iOS 26.0+

buildBlock

TypeScript
static buildBlock(identifier: AppExtensionPoint_Identifier): AppExtensionPoint
Swift declaration
static func buildBlock(_ identifier: AppExtensionPoint.Identifier) -> AppExtensionPoint

Passes an identifier to the extension point type.

static · iOS 26.2+

buildBlock

TypeScript
static buildBlock30908(identifier: AppExtensionPoint_Identifier, capabilities: AppExtensionPoint_Capabilities): AppExtensionPoint
Swift declaration
static func buildBlock(_ identifier: AppExtensionPoint.Identifier, _ capabilities: AppExtensionPoint.Capabilities) -> AppExtensionPoint

Skipped declarations

No declarations were skipped in this snapshot.

All ExtensionFoundation types →