krz/moonrise

Night-sky companion for iPhone, Apple Watch and Vision Pro: what's up tonight, the Moon, planets, launches and missions, and a Library of the solar system. SwiftUI app with a Cloudflare Workers backend. astronomy cloudflare-workers ios night-sky space swiftui visionos watchos

App/Sources/Intents/MoonriseShortcuts.swift

59d401dca1a327705632d1e2e20f00f807dee828
moonrise/App/Sources/Intents/MoonriseShortcuts.swift history · blame · raw

61 lines · 2882 bytes

1 symbol in this file
 1import AppIntents
 2
 3/// Siri phrases. Each must contain the app's name; at most 10 shortcuts.
 4struct MoonriseShortcuts: AppShortcutsProvider {
 5    static var appShortcuts: [AppShortcut] {
 6        AppShortcut(
 7            intent: MoonPhaseIntent(),
 8            phrases: ["Moon phase in \(.applicationName)", "How full is the moon in \(.applicationName)", "\(.applicationName) moon phase"],
 9            shortTitle: "Moon Phase",
10            systemImageName: "moonphase.waxing.gibbous"
11        )
12        AppShortcut(
13            intent: TonightIntent(),
14            phrases: ["What's in the sky tonight in \(.applicationName)", "What can I see tonight in \(.applicationName)", "\(.applicationName) tonight"],
15            shortTitle: "Tonight's Sky",
16            systemImageName: "sparkles"
17        )
18        AppShortcut(
19            intent: NextPassIntent(),
20            phrases: ["When is the next ISS pass in \(.applicationName)", "Next pass of \(\.$satellite) in \(.applicationName)", "When can I see \(\.$satellite) in \(.applicationName)"],
21            shortTitle: "Next Pass",
22            systemImageName: "dot.radiowaves.up.forward"
23        )
24        AppShortcut(
25            intent: NextLaunchIntent(),
26            phrases: ["When's the next launch in \(.applicationName)", "Next rocket launch in \(.applicationName)"],
27            shortTitle: "Next Launch",
28            systemImageName: "airplane.departure"
29        )
30        AppShortcut(
31            intent: SpaceWeatherIntent(),
32            phrases: ["Aurora chance in \(.applicationName)", "What's the Kp index in \(.applicationName)", "Space weather in \(.applicationName)"],
33            shortTitle: "Aurora and Kp",
34            systemImageName: "sun.max"
35        )
36        AppShortcut(
37            intent: ProbeDistanceIntent(),
38            phrases: ["How far is \(\.$probe) in \(.applicationName)", "How far away is \(\.$probe) in \(.applicationName)"],
39            shortTitle: "Probe Distance",
40            systemImageName: "antenna.radiowaves.left.and.right"
41        )
42        AppShortcut(
43            intent: LookUpIntent(),
44            phrases: ["Look up \(\.$page) in \(.applicationName)", "Look up something in \(.applicationName)"],
45            shortTitle: "Look Up",
46            systemImageName: "books.vertical"
47        )
48        AppShortcut(
49            intent: ShowInSkyIntent(),
50            phrases: ["Show \(\.$target) in the sky with \(.applicationName)", "Find \(\.$target) in \(.applicationName)", "Show something in the sky with \(.applicationName)"],
51            shortTitle: "Show in Sky",
52            systemImageName: "scope"
53        )
54        AppShortcut(
55            intent: SearchLibraryIntent(),
56            phrases: ["Search the \(.applicationName) Library", "Search \(.applicationName)"],
57            shortTitle: "Search Library",
58            systemImageName: "magnifyingglass"
59        )
60    }
61}