35 lines
924 B
Swift
35 lines
924 B
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)",
|
||
|
"Write a status in \(.applicationName)",
|
||
|
],
|
||
|
shortTitle: "Post a status",
|
||
|
systemImageName: "square.and.pencil"
|
||
|
)
|
||
|
AppShortcut(
|
||
|
intent: TabIntent(),
|
||
|
phrases: [
|
||
|
"Open \(\.$tab) in \(.applicationName)",
|
||
|
"Open \(.applicationName)",
|
||
|
],
|
||
|
shortTitle: "Open Ice Cubes",
|
||
|
systemImageName: "cube"
|
||
|
)
|
||
|
AppShortcut(
|
||
|
intent: PostPhotoIntent(),
|
||
|
phrases: [
|
||
|
"Post images \(\.$images) in \(.applicationName)",
|
||
|
"Send photos \(\.$images) with \(.applicationName)",
|
||
|
],
|
||
|
shortTitle: "Post images",
|
||
|
systemImageName: "photo"
|
||
|
)
|
||
|
}
|
||
|
}
|