I am trying to create an appIntent for a standalone watchOS App but it never shows up in the shortcuts app on the watch. Works fine for an iPhone app. What am I missing here ?
import AppIntents
struct intenttest: AppIntent {
static var title: LocalizedStringResource = "intent "
func perform() async throws -> some IntentResult {
return .result()
}
}
struct LibraryAppShorcuts: AppShortcutsProvider {
@AppShortcutsBuilder static var appShortcuts: [AppShortcut] {
AppShortcut(intent: intenttest(),
phrases: ["My something phrase in \(.applicationName)"])
}
}