Skip to main content
Solved

SubscriptionStoreView(for: offering) not found

  • 23 August 2024
  • 2 replies
  • 45 views

Hi there 👋🏻

I am trying to use SubscriptionStoreView(for: offering) that is mentioned here:

https://www.revenuecat.com/blog/engineering/storekit-views-guide-paywall-swift-ui/#h-using-with-revenuecat

 

But I am not able to find this view, although I have imported both RevenueCatUI and RevenueCat.

What am I missing?

2 replies

Userlevel 4
Badge +8

It looks like the syntax for this may have changed. SubscriptionsStoreView.forOffering should work instead as seen here: https://github.com/RevenueCat/purchases-ios/blob/e65c323edc27421a7f70aeaaf750f7adab0bfc35/Sources/Support/DebugUI/DebugContentViews.swift#L305
 
Does that work for you?

Badge

It looks like the syntax for this may have changed. SubscriptionsStoreView.forOffering should work instead as seen here: https://github.com/RevenueCat/purchases-ios/blob/e65c323edc27421a7f70aeaaf750f7adab0bfc35/Sources/Support/DebugUI/DebugContentViews.swift#L305
 
Does that work for you?

Yes Indeed,  thank you.

Reply