Files
FeelAloud/FeelAloud/StartDiaryEntryIntent.swift
2026-07-22 22:18:33 +02:00

32 lines
1003 B
Swift

import AppIntents
struct StartDiaryEntryIntent: AppIntent, TargetContentProvidingIntent {
static let title: LocalizedStringResource = "Eintrag aufnehmen"
static let description = IntentDescription(
"Öffnet FeelAloud und startet einen neuen Spracheintrag."
)
static let openAppWhenRun = true
static let supportedModes: IntentModes = [.foreground]
func perform() async throws -> some IntentResult {
.result()
}
}
struct FeelAloudShortcuts: AppShortcutsProvider {
static let shortcutTileColor: ShortcutTileColor = .purple
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: StartDiaryEntryIntent(),
phrases: [
"Eintrag in \(.applicationName) aufnehmen",
"Neuer Eintrag in \(.applicationName)",
"\(.applicationName) Eintrag sprechen"
],
shortTitle: "Eintrag aufnehmen",
systemImageName: "waveform.and.mic"
)
}
}