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!
Displaying different paywalls based on offering
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)
}
![Shipped It Badge](https://uploads-us-west-2.insided.com/revenuecat-en/attachment/00177be5-17f2-4400-bea7-87c75adea50f_thumb.png)
Thanks that works!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.