russell-archer / StoreHelper

Implementing In-App Purchases with StoreKit2 in Xcode 13 - 15 using SwiftUI, Swift 5.7 - 5.9, iOS 15 - 17 and macOS 12 - 14. Also supports tvOS and visionOS.
MIT License
410 stars 48 forks source link

Update `subscriptionHelper` declaration #77

Closed Hengyu closed 4 months ago

Hengyu commented 4 months ago

We can use lazy var here to reference self when declare the property.

As a result, there is no longer need to mark the property as force unwrapped ! and we can use this property as usual.

Hengyu commented 4 months ago

@russell-archer PTAL

russell-archer commented 4 months ago

Nice idea! Merged - thank you!