mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-03 22:06:29 +00:00
42 lines
1.1 KiB
Swift
42 lines
1.1 KiB
Swift
import AppIntents
|
|
|
|
struct AppShortcuts: AppShortcutsProvider {
|
|
static var appShortcuts: [AppShortcut] {
|
|
AppShortcut(
|
|
intent: PostIntent(),
|
|
phrases: [
|
|
"Post \(\.$content) in \(.applicationName)",
|
|
"Post a status on Mastodon with \(.applicationName)",
|
|
],
|
|
shortTitle: "Compose a post",
|
|
systemImageName: "square.and.pencil"
|
|
)
|
|
AppShortcut(
|
|
intent: InlinePostIntent(),
|
|
phrases: [
|
|
"Write a post with \(.applicationName)",
|
|
"Send on post on Mastodon with \(.applicationName)",
|
|
],
|
|
shortTitle: "Send a post",
|
|
systemImageName: "square.and.pencil"
|
|
)
|
|
AppShortcut(
|
|
intent: TabIntent(),
|
|
phrases: [
|
|
"Open \(\.$tab) in \(.applicationName)",
|
|
"Open \(.applicationName)",
|
|
],
|
|
shortTitle: "Open Ice Cubes",
|
|
systemImageName: "cube"
|
|
)
|
|
AppShortcut(
|
|
intent: PostImageIntent(),
|
|
phrases: [
|
|
"Post images images in \(.applicationName)",
|
|
"Send photos with \(.applicationName)",
|
|
],
|
|
shortTitle: "Post a status with an image",
|
|
systemImageName: "photo"
|
|
)
|
|
}
|
|
}
|