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

Compile Issue #53

Closed cjarman closed 1 year ago

cjarman commented 1 year ago

Hi,

XCode is throwing a compilation error:

Missing arguments for parameters 'content', 'publisher', 'action' in call

This from the MainView on the following line from the demo app:

NavigationLink(destination: SubscriptionView()) { Text("Subscriptions").font(.largeTitle).padding()}

SubscriptionView does not appear to take any parameters.

C

russell-archer commented 1 year ago

Sorry, can't reproduce this. To test I opened the StoreHelperDemo project, did File > Packages > Update to Latest Package Versions to make sure I was using the latest version of StoreHelper and then rebuilt for iOS (16.2) and macOS (13.1). I also built for iOS 16.4 and macOS 13.3 without an errors. This is was using Xcode 14.3 on macOS 13.3.1.