AppIntents
is a Swift-native framework that was introduced in iOS/iPadOS 16, macOS 13, watchOS 9 and tvOS 16. As Apple describes in the documentation:
The App Intents framework offers a programmatic way to make your app’s content and functionality available to system services like Siri, [Spotlight] and the Shortcuts app. The programmatic approach lets you expose any of your app’s capabilities, and not just ones that fall into specific categories. You also use this programmatic approach to supply metadata, UI information, activation phrases, and other information the system needs to initiate your app’s actions.
The AppIntents
framework is the modern way to build Shortcuts for Siri, Spotlight and the Shortcuts app. It complements the SiriKit Intents
framework (introduced in iOS/iPadOS 10, macOS 12, watchOS 3.2 and tvOS 14).