forked from PoomSmart/TrollLEDs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathShortcutsProvider.swift
47 lines (46 loc) · 1.45 KB
/
ShortcutsProvider.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import AppIntents
@available(iOS 16.0, *)
struct TrollLEDsAppShortcutsProvider: AppShortcutsProvider {
@AppShortcutsBuilder static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: AmberOnIntent(),
phrases: [
"Turn on amber LEDs with \(.applicationName)"
],
shortTitle: "Amber On",
systemImageName: "flashlight.on.circle.fill"
)
AppShortcut(
intent: WhiteOnIntent(),
phrases: [
"Turn on white LEDs with \(.applicationName)"
],
shortTitle: "White On",
systemImageName: "flashlight.on.circle.fill"
)
AppShortcut(
intent: AllOnIntent(),
phrases: [
"Turn on all LEDs with \(.applicationName)"
],
shortTitle: "All On",
systemImageName: "flashlight.on.circle.fill"
)
AppShortcut(
intent: AllOffIntent(),
phrases: [
"Turn off all LEDs with \(.applicationName)"
],
shortTitle: "All Off",
systemImageName: "flashlight.off.circle.fill"
)
AppShortcut(
intent: ManualIntent(),
phrases: [
"Configure LEDs levels manually with \(.applicationName)"
],
shortTitle: "Manual",
systemImageName: "flashlight.on.circle.fill"
)
}
}