Skip to main content
Solved

SubscriptionStoreView(for: offering) not found


Forum|alt.badge.img+2

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?

Best answer by Ryan Glanz

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?

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

2 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 369 replies
  • Answer
  • August 27, 2024

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?


Forum|alt.badge.img+2
  • Author
  • New Member
  • 1 reply
  • August 28, 2024
Ryan Glanz wrote:

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.


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