Skip to main content
Solved

No hard paywall in swiftui

  • Nov 17, 2024 2:02 PM UTC
  • 3 replies
  • 599 views

Forum|alt.badge.img+3

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
This post has been closed for comments

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Answer
  • Nov 20, 2024 3:04 PM UTC

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+3
  • Author
  • New Member
  • Nov 21, 2024 3:16 PM UTC

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
  • Dec 2, 2024 3:00 PM UTC

Hi ​@maarten,

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

Best,