|
8 | 8 | import SwiftUI |
9 | 9 |
|
10 | 10 | public enum AppMetaData { |
11 | | - case starorder |
12 | | - case fasting |
13 | | - case newworld |
14 | | - case wallpaper |
| 11 | + case starorder |
| 12 | + case fasting |
| 13 | + case newworld |
| 14 | + case wallpaper |
| 15 | + case orbitring |
| 16 | + case orbitread |
15 | 17 | } |
16 | 18 |
|
17 | 19 | public extension AppMetaData { |
18 | | - func icon() -> Image { |
19 | | - switch self { |
20 | | - case .starorder: |
21 | | - return Image("sos_icon", bundle: .module) |
22 | | - case .fasting: |
23 | | - return Image("fasting_icon", bundle: .module) |
24 | | - case .newworld: |
25 | | - return Image("newworld_icon", bundle: .module) |
26 | | - case .wallpaper: |
27 | | - return Image("wallpaper_icon", bundle: .module) |
28 | | - } |
| 20 | + func icon() -> Image { |
| 21 | + switch self { |
| 22 | + case .starorder: |
| 23 | + return Image("sos_icon", bundle: .module) |
| 24 | + case .fasting: |
| 25 | + return Image("fasting_icon", bundle: .module) |
| 26 | + case .newworld: |
| 27 | + return Image("newworld_icon", bundle: .module) |
| 28 | + case .wallpaper: |
| 29 | + return Image("wallpaper_icon", bundle: .module) |
| 30 | + case .orbitring: |
| 31 | + return Image("orbitring_icon", bundle: .main) |
| 32 | + case .orbitread: |
| 33 | + return Image("orbitread_icon", bundle: .main) |
29 | 34 | } |
| 35 | + } |
30 | 36 |
|
31 | | - func title() -> String { |
32 | | - switch self { |
33 | | - case .starorder: |
34 | | - return "Star Order" |
35 | | - case .fasting: |
36 | | - return "Fasting" |
37 | | - case .newworld: |
38 | | - return "新词" |
39 | | - case .wallpaper: |
40 | | - return "简明壁纸" |
41 | | - } |
| 37 | + func title() -> String { |
| 38 | + switch self { |
| 39 | + case .starorder: |
| 40 | + return "Star Order" |
| 41 | + case .fasting: |
| 42 | + return "Fasting" |
| 43 | + case .newworld: |
| 44 | + return "新词" |
| 45 | + case .wallpaper: |
| 46 | + return "简明壁纸" |
| 47 | + case .orbitring: |
| 48 | + return "Orbitring" |
| 49 | + case .orbitread: |
| 50 | + return "Orbitread" |
42 | 51 | } |
| 52 | + } |
43 | 53 |
|
44 | | - func subtitle() -> String { |
45 | | - switch self { |
46 | | - case .starorder: |
47 | | - return "Best GitHub star manager." |
48 | | - case .fasting: |
49 | | - return "Live a healty life." |
50 | | - case .newworld: |
51 | | - return "Your personal vocabulary book." |
52 | | - case .wallpaper: |
53 | | - return "Neat AICG wallpaper for you." |
54 | | - } |
| 54 | + func subtitle() -> String { |
| 55 | + switch self { |
| 56 | + case .starorder: |
| 57 | + return "Best GitHub star manager." |
| 58 | + case .fasting: |
| 59 | + return "Live a healty life." |
| 60 | + case .newworld: |
| 61 | + return "Your personal vocabulary book." |
| 62 | + case .wallpaper: |
| 63 | + return "Neat AICG wallpaper for you." |
| 64 | + case .orbitring: |
| 65 | + return "Powerful macOS ring launcher." |
| 66 | + case .orbitread: |
| 67 | + return "A smarter “Read-It-Later” assistant, powered by AI." |
55 | 68 | } |
| 69 | + } |
56 | 70 |
|
57 | | - func storeURL() -> String { |
58 | | - switch self { |
59 | | - case .starorder: |
60 | | - return "https://apps.apple.com/us/app/star-order-github-star-%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7/id1073829178" |
61 | | - case .fasting: |
62 | | - return "https://apps.apple.com/us/app/fasting-diet-and-healthy/id1672477216" |
63 | | - case .newworld: |
64 | | - return "https://apps.apple.com/us/app/%E6%96%B0%E8%AF%8D/id6457202781" |
65 | | - case .wallpaper: |
66 | | - return "https://apps.apple.com/us/app/%E7%AE%80%E6%98%8E%E5%A3%81%E7%BA%B8/id1204724975" |
67 | | - } |
| 71 | + func storeURL() -> String { |
| 72 | + switch self { |
| 73 | + case .starorder: |
| 74 | + return "https://apps.apple.com/us/app/star-order-github-star-%E7%AE%A1%E7%90%86%E5%B7%A5%E5%85%B7/id1073829178" |
| 75 | + case .fasting: |
| 76 | + return "https://apps.apple.com/us/app/fasting-diet-and-healthy/id1672477216" |
| 77 | + case .newworld: |
| 78 | + return "https://apps.apple.com/us/app/%E6%96%B0%E8%AF%8D/id6457202781" |
| 79 | + case .wallpaper: |
| 80 | + return "https://apps.apple.com/us/app/%E7%AE%80%E6%98%8E%E5%A3%81%E7%BA%B8/id1204724975" |
| 81 | + case .orbitring: |
| 82 | + return "https://apps.apple.com/us/app/orbitring-launcher/id6740730747" |
| 83 | + case .orbitread: |
| 84 | + return "https://apps.apple.com/us/app/orbitring-launcher/id6740730747" |
68 | 85 | } |
| 86 | + } |
69 | 87 | } |
0 commit comments