2024-05-02 09:37:38 +00:00
|
|
|
import AppIntents
|
|
|
|
|
|
|
|
struct AppShortcuts: AppShortcutsProvider {
|
|
|
|
static var appShortcuts: [AppShortcut] {
|
|
|
|
AppShortcut(
|
|
|
|
intent: PostIntent(),
|
|
|
|
phrases: [
|
|
|
|
"Post \(\.$content) in \(.applicationName)",
|
|
|
|
"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 \(\.$tab) in \(.applicationName)",
|
|
|
|
"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: [
|
|
|
|
"Post images \(\.$images) in \(.applicationName)",
|
|
|
|
"Send photos \(\.$images) with \(.applicationName)",
|
|
|
|
],
|
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"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|