mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
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"
|
||
|
)
|
||
|
}
|
||
|
}
|