Skip to main content
Question

“import Purchases” or “import RevenueCat” in SwiftUI

  • September 25, 2023
  • 2 replies
  • 93 views

Forum|alt.badge.img+2

In the doc “Using RevenueCat with SwiftUI”, https://www.revenuecat.com/docs/swiftui-helpers, they use “import Purchases” all other places in the support documentation “import RevenueCat” is used. Should I shift to “import Purchases”?

2 replies

Forum|alt.badge.img+8
  • RevenueCat Staff
  • 509 replies
  • September 29, 2023

Hi, this depends on what version of our SDK you are using. If you are using earlier than version 4, use `import Purchases`. If version 4 and later, you should use `import RevenueCat`


Forum|alt.badge.img+2
  • New Member
  • 2 replies
  • January 26, 2024
Haley Pace wrote:

Hi, this depends on what version of our SDK you are using. If you are using earlier than version 4, use `import Purchases`. If version 4 and later, you should use `import RevenueCat`

Will the documentation page be updated to reflect this changed? I figured out the change to the import statement by guessing, and then found this post.

If someone (like me) is following the instructions step by step, it’s easy to miss that the Xcode 15 instructions are slightly different from what’s presented in the video.

https://www.revenuecat.com/docs/ios

A tweak to that documentation should make this straightforward to other users.

Up to this point I’ve had few problems with configuration, setup, and installation.


Reply


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