feat: app intents, siri & widgets + fix for auth (#5)
Reviewed-on: #5 Co-authored-by: Joshua Higgins <joshuafhiggins@gmail.com>
This commit was merged in pull request #5.
This commit is contained in:
1 parent
838a25b990
commit
7327ae9c68
45 files changed
+1390
-1205
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import AppIntents
|
||||
|
||||
@available(iOS 18.0, *)
|
||||
struct AppShortcuts: AppShortcutsProvider {
|
||||
static var appShortcuts: [AppShortcut] {
|
||||
AppShortcut(
|
||||
intent: WakeDeviceIntent(),
|
||||
phrases: [
|
||||
"Wake a device in \(.applicationName)",
|
||||
"Wake \(\.$device) in \(.applicationName)",
|
||||
],
|
||||
shortTitle: "Wake Device",
|
||||
systemImageName: "bolt.fill"
|
||||
)
|
||||
AppShortcut(
|
||||
intent: SleepDeviceIntent(),
|
||||
phrases: [
|
||||
"Sleep a device in \(.applicationName)",
|
||||
"Sleep \(\.$device) in \(.applicationName)",
|
||||
],
|
||||
shortTitle: "Sleep Device",
|
||||
systemImageName: "moon.fill"
|
||||
)
|
||||
AppShortcut(
|
||||
intent: RestartDeviceIntent(),
|
||||
phrases: [
|
||||
"Restart a device in \(.applicationName)",
|
||||
"Restart \(\.$device) in \(.applicationName)",
|
||||
],
|
||||
shortTitle: "Restart Device",
|
||||
systemImageName: "arrow.clockwise"
|
||||
)
|
||||
AppShortcut(
|
||||
intent: ShutdownDeviceIntent(),
|
||||
phrases: [
|
||||
"Shut down a device in \(.applicationName)",
|
||||
"Shut down \(\.$device) in \(.applicationName)",
|
||||
],
|
||||
shortTitle: "Shut Down Device",
|
||||
systemImageName: "power"
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user