Hi all, I could not find this in the docs. I have 2 different paywalls and 2 different offerings. How do I call up a specific paywall within the app vs the other using UKIT or Swift/IOS? Thanks!
Solved
Displaying different paywalls based on offering
+1
Best answer by cody
Hey
When using UIKit, you can pass an `offering` to the PaywallViewController initializer after fetching your offerings like this:
func openPaywall() async throws {
let offerings = try await Purchases.shared.offerings()
let myCustomOffering = offerings.offering(identifier: "customerOfferingIdentifier")
let paywall = PaywallViewController(offering: myCustomOffering, displayCloseButton: true)
self.present(paywall, animated: true)
}
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.