diff --git a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift index ac3e1db8c50d..35f9472bcac5 100644 --- a/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift +++ b/ios/brave-ios/Sources/BraveStore/Subscription/SDK/BraveStoreSDK.swift @@ -76,6 +76,15 @@ public enum BraveStoreProduct: String, AppStoreProduct, CaseIterable { /// Leo Yearly AppStore SKU case leoYearly + public init?(rawValue: String) { + if let value = Self.allCases.first(where: { $0.rawValue == rawValue }) { + self = value + return + } + + return nil + } + /// The Title of the SKU Group public var subscriptionGroup: String { switch self {