App Intents

RSS for tag

Extend your app’s custom functionality to support system-level services, like Siri and the Shortcuts app.

App Intents Documentation

Posts under App Intents tag

22 Posts
Sort by:
Post not yet marked as solved
0 Replies
228 Views
Hi, I tried to implement the new AppIntents to replace some old shortcuts. I followed the sessions and their examples on how they are implemented. Unfortunately, I have not been able to get an App Intent into the Shortcuts App. I tried it on different apps, new projects and tried multiple changes to the intents. Is there something that I'm missing or is this just a bug in Beta 1? Here's my sample code: import AppIntents struct TestIntent: AppIntent {     static var title: LocalizedStringResource = "Test"     static var description: IntentDescription? = IntentDescription("Test description")          func perform() async throws -> some IntentPerformResult {         .finished(value: "Test")     } } I filed a feedback for this issue: FB10102293 All the best, Alex
Posted
by AlexSFD.
Last updated
.
Post not yet marked as solved
0 Replies
156 Views
In the video the app entity type is called MeditationSession (10:09) but in the StartMeditationIntent the @Parameter's type is SessionType (11:16). Maybe it is a different type but from what I understand it should be the same since the disambiguation is done among SessionManager.allSessions which returns an array of MeditationSessions and the type of sessionToRun needs to match self.session.
Posted Last updated
.