Sources/OrgApp/Tip.swift

6466e407df0246fc7908dafa6e1757c6ba69b6e8
orgstar/Sources/OrgApp/Tip.swift

10 lines · 369 bytes

 1/// One-time consumable tips on iOS. They unlock nothing.
 2public enum Tip: String, CaseIterable, Sendable {
 3    case small, medium, large
 4
 5    /// The App Store product identifier.
 6    public var productID: String { "sh.krz.orgstar.tip.\(rawValue)" }
 7
 8    /// Identifiers in the order the tips are listed.
 9    public static let productIDs = allCases.map(\.productID)
10}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form