Question

“import Purchases” or “import RevenueCat” in SwiftUI

  • 25 September 2023
  • 2 replies
  • 40 views

Badge +1

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

Userlevel 4
Badge +8

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`

Badge

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