One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppIntentsPackage

protocol · iOS 17.0+ · SDK 27.1

protocol AppIntentsPackage

A type that describes app intent definitions that aren't part of an app bundle and their dependencies. By default, your app intents are part of your application bundle. However, you may want to reuse app intents across apps or app extensions; for example, by bundling them with a framework you use across apps or Xcode targets. To make app intent declarations available with your framework, it needs to define its own app intents package type as shown in the following example: ``` struct MyFrameworkPackage: AppIntentsPackage { } ``` To use the framework's app intents in your app, define an app intents package in your app that depends on the framework's app intents package; for example: ``` struct MyAppPackage: AppIntentsPackage { static var includedPackages: [any AppIntentsPackage.Type] { [MyFrameworkPackage.self] } } ``` The app intents package `MyFrameworkPackage` in the example above doesn't depend on another framework and its app intents. However, any app intents package can include a dependency on one or more other app intents packages. For example, the `MyAppPackage` could include the `MyFrameworkPackage` which itself could include another framework's `OtherFrameworkPackage`.

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.

AppIntentsPackage.includedPackages

Passing a Swift type itself is not supported.

All AppIntents types →