| 123456789101112131415161718 |
- import Foundation
- enum SubscriptionProductID {
- static let monthly = "com.Reddora.pro.monthly"
- static let yearly = "com.Reddora.pro.yearly"
- static let lifetime = "com.Reddora.pro.lifetime"
- static let all: Set<String> = [monthly, yearly, lifetime]
- static func plan(for productID: String) -> PaywallPlan? {
- switch productID {
- case monthly: .monthly
- case yearly: .yearly
- case lifetime: .lifetime
- default: nil
- }
- }
- }
|