IceCubes/IceCubesAppIntents/AppShortcuts.swift

44 lines
1.1 KiB
Swift
Raw Normal View History

2024-05-02 11:37:38 +02:00
import AppIntents
struct AppShortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: PostIntent(),
phrases: [
2024-06-26 11:05:35 +02:00
"Post in \(.applicationName)",
2024-05-02 11:37:38 +02:00
"Post a status on Mastodon with \(.applicationName)",
],
2024-05-05 13:12:19 +02:00
shortTitle: "Compose a post",
2024-05-04 13:12:43 +02:00
systemImageName: "square.and.pencil"
)
AppShortcut(
intent: InlinePostIntent(),
phrases: [
2024-05-05 13:12:19 +02:00
"Write a post with \(.applicationName)",
"Send on post on Mastodon with \(.applicationName)",
2024-05-04 13:12:43 +02:00
],
2024-05-05 13:12:19 +02:00
shortTitle: "Send a post",
2024-05-02 11:37:38 +02:00
systemImageName: "square.and.pencil"
)
AppShortcut(
intent: TabIntent(),
phrases: [
"Open \(.applicationName)",
],
shortTitle: "Open Ice Cubes",
systemImageName: "cube"
)
AppShortcut(
2024-05-04 11:34:51 +02:00
intent: PostImageIntent(),
2024-05-02 11:37:38 +02:00
phrases: [
2024-06-26 11:05:35 +02:00
"Post images in \(.applicationName)",
"Post an image in \(.applicationName)",
"Send photos with \(.applicationName)",
"Send a photo with \(.applicationName)",
2024-05-02 11:37:38 +02:00
],
2024-05-04 13:12:43 +02:00
shortTitle: "Post a status with an image",
2024-05-02 11:37:38 +02:00
systemImageName: "photo"
)
}
}