2024-05-02 11:37:38 +02: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-04 13:12:43 +02:00
|
|
|
shortTitle: "Compose a status",
|
|
|
|
systemImageName: "square.and.pencil"
|
|
|
|
)
|
|
|
|
AppShortcut(
|
|
|
|
intent: InlinePostIntent(),
|
|
|
|
phrases: [
|
|
|
|
"Write a status with \(.applicationName)",
|
|
|
|
"Send on Status on Mastodon with \(.applicationName)",
|
|
|
|
],
|
|
|
|
shortTitle: "Send a text status",
|
2024-05-02 11:37:38 +02: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 11:34:51 +02:00
|
|
|
intent: PostImageIntent(),
|
2024-05-02 11:37:38 +02:00
|
|
|
phrases: [
|
|
|
|
"Post images \(\.$images) in \(.applicationName)",
|
|
|
|
"Send photos \(\.$images) with \(.applicationName)",
|
|
|
|
],
|
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"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|