Sources/OrgApp/Tip.swift
10 lines · 369 bytes
1 symbol in this file
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}