Skip to main content
Solved

No hard paywall in swiftui

  • November 17, 2024
  • 3 replies
  • 106 views

Forum|alt.badge.img+2

I’m using the .presentPaywallIfNeeded(requiredEntitlementIdentifier: "Premium", presentationMode: .fullScreen) in SwiftUI. I like to use a hard paywall. yet I don’t see the option in anything else then React Native. Why isn’t this option available for SwiftUI

Best answer by joan-cardona

Hi ​@maarten,

Paywalls displayed with presentPaywallIfNeeded will have a close button on the presented sheet. However, a PaywallView will not have a close button by default. This gives you full control over how to navigate to and from your PaywallView. You can push it onto an existing navigation stack or show it in a sheet with a custom dismiss button using the SwiftUI toolbar.

 

Let me know if this works!

View original
Did this post help you find an answer to your question?
This post has been closed for comments

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • Answer
  • November 20, 2024

Hi ​@maarten,

Paywalls displayed with presentPaywallIfNeeded will have a close button on the presented sheet. However, a PaywallView will not have a close button by default. This gives you full control over how to navigate to and from your PaywallView. You can push it onto an existing navigation stack or show it in a sheet with a custom dismiss button using the SwiftUI toolbar.

 

Let me know if this works!


Forum|alt.badge.img+2
  • Author
  • New Member
  • 1 reply
  • November 21, 2024

This is the approach I took. I yet don’t quite understand why this option isn’t available while it is available for other tech stacks 


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • December 2, 2024

Hi ​@maarten,

Just to confirm, with that approach you have a hard paywall correct? I’ll pass the feedback to the team anyway!

Best,


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings