IceCubesApp/IceCubesAppIntents/AppShortcuts.swift

44 lines
1.1 KiB
Swift
Raw Normal View History

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