Skip to main content
Answer

No hard paywall in swiftui

  • November 17, 2024
  • 3 replies
  • 205 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!

This post has been closed for comments

3 replies

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 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+3
  • Author
  • New Member
  • 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
  • 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,