Skip to main content
Answer

SubscriptionStoreView(for: offering) not found

  • August 23, 2024
  • 2 replies
  • 79 views

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?

This post has been closed for comments

2 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 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
  • August 28, 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?

Yes Indeed,  thank you.