ExtensionFoundation lets you declare the content, structure, and behavior of an app extension. Conform a type to the AppExtension protocol to provide the entry point every app extension adopts, and use ExtensionPointDefining to describe the extension point your code implements. Supporting types such as AppExtensionIdentity, AppExtensionPoint, and AppExtensionProcess represent an extension's identity, its declared extension point, and the running process that hosts it across iOS, macOS, tvOS, watchOS, and visionOS.
Essentials 2
Protocols that define an app extension's entry point and the extension point it implements.
- PrAppExtensioniOS 16.0+An interface you use to declare the content, structure, and behavior of an app extension.
- PrExtensionPointDefiningiOS 26.0+An interface that extension point types adopt.
Extension Identity and Points 2
Types that represent an extension's identity and the extension point it declares.
- StAppExtensionIdentityiOS 26.0+A type that uniquely identifies an app extension on the system.
- StAppExtensionPointiOS 26.0+A type you use to declare your host app’s extension points and bind to them from app extensions.
Extension Processes 1
The running process that hosts an app extension.
- StAppExtensionProcessiOS 26.0+A type the host app creates to launch and manage an app extension.
Structures 1
- StConnectionHandlerA type that contains a custom closure that handles incoming XPC connections.
Protocols 1
- PrAppExtensionConfigurationiOS 16.0+An interface you use to configure the XPC connection in your app extension.