diff --git a/RevenueCatUI/PaywallView.swift b/RevenueCatUI/PaywallView.swift index e155b7df02..b084a204d9 100644 --- a/RevenueCatUI/PaywallView.swift +++ b/RevenueCatUI/PaywallView.swift @@ -26,14 +26,12 @@ public struct PaywallView: View { /// - Note: If loading the current `Offering` fails (if the user is offline, for example), /// an error will be displayed. /// - Warning: `Purchases` must have been configured prior to displaying it. - /// If you want to handle that, you can use ``init(offering:mode:)`` instead. + /// If you want to handle that, you can use ``init(offering:)`` instead. public init( - mode: PaywallViewMode = .default, fonts: PaywallFontProvider = DefaultPaywallFontProvider() ) { self.init( offering: nil, - mode: mode, fonts: fonts, introEligibility: .default(), purchaseHandler: .default() @@ -46,12 +44,10 @@ public struct PaywallView: View { /// - Warning: `Purchases` must have been configured prior to displaying it. public init( offering: Offering, - mode: PaywallViewMode = .default, fonts: PaywallFontProvider = DefaultPaywallFontProvider() ) { self.init( offering: offering, - mode: mode, fonts: fonts, introEligibility: .default(), purchaseHandler: .default() diff --git a/Tests/APITesters/RevenueCatUIAPITester/SwiftAPITester/PaywallViewAPI.swift b/Tests/APITesters/RevenueCatUIAPITester/SwiftAPITester/PaywallViewAPI.swift index 81d8609c8d..6b2d220d1f 100644 --- a/Tests/APITesters/RevenueCatUIAPITester/SwiftAPITester/PaywallViewAPI.swift +++ b/Tests/APITesters/RevenueCatUIAPITester/SwiftAPITester/PaywallViewAPI.swift @@ -25,13 +25,9 @@ struct App: View { @ViewBuilder var content: some View { PaywallView() - PaywallView(mode: .fullScreen) PaywallView(fonts: self.fonts) - PaywallView(mode: .fullScreen, fonts: self.fonts) PaywallView(offering: self.offering) - PaywallView(offering: self.offering, mode: .fullScreen) PaywallView(offering: self.offering, fonts: self.fonts) - PaywallView(offering: self.offering, mode: .fullScreen, fonts: self.fonts) } @ViewBuilder