One Logo Pool Ball
ExtensionFoundation · IOS API REFERENCE

AppExtensionPoint.Definition

struct · iOS 26.0+ · SDK 27.1

@resultBuilder struct Definition

A property wrapper that a host app uses to declare the extension points it supports. Apply this property wrapper to variables that define your host app’s custom extension points. In the property that follows the definition, specify the name of your extension point and any additional attributes. The following example defines an extension point that runs app extensions with enhanced security: ``` extension AppExtensionPoint { @Definition static var MySecureFeature : AppExtensionPoint { Name(“MySecureFeature”) UserInterface(false) EnhancedSecurity(true) } } ``` To ensure the system discovers your app’s extension points, add a user-defined build setting to your app 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 adds an `.appext` file to your app’s bundle and places your definitions in it.

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AppExtensionPoint.Definition.buildBlock(_:_:)

Swift parameter packs cannot cross the bridge.

All ExtensionFoundation types →