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 = [monthly, yearly, lifetime] static func plan(for productID: String) -> PaywallPlan? { switch productID { case monthly: .monthly case yearly: .yearly case lifetime: .lifetime default: nil } } }