Skip to main content
Question

How to display paywall in SwiftUI macOS?

  • Nov 16, 2024 4:29 AM UTC
  • 2 replies
  • 567 views

Air

I created a Multiplatform app in Xcode. This app has two platforms, iOS and macOS, and users can use it at the same time no matter which platform they purchase on. Currently, the paywall can be displayed correctly when debugging on iOS, but I don't know how to display the paywall on macOS. How can I make the paywall display on the macOS platform app so that users can make purchases?

When switching to My Mac, a code error is displayed:
Value of type 'some View' has no member 'presentPaywallIfNeeded'

 

This post has been closed for comments

2 replies

Air
  • Author
  • Nov 17, 2024 5:12 AM UTC

😅


wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • Nov 22, 2024 4:34 PM UTC

Hi! MacOS is not currently one of our supported platforms for Paywalls. You can find a list of the supported platforms here