Post

Replies

Boosts

Views

Activity

Reply to StoreKit 2: cancellation button
, thanks for the info! The DOCs are wrong, as it creasy says "button for cancelling a subscription" where it should be "button for dismissing a subscription sheet". Did you guys figure out how to set a button for actually "cancelling a subscription"? I posted on SO about this, but haven't got an answear yet... https://stackoverflow.com/questions/77881622/swiftui-storekit-2-how-to-cancel-a-subscription-using-subscriptionstoreview-on For iOS, we have this:, which does have a button to cancel the subscription: .manageSubscriptionsSheet( isPresented: $presentingSubscriptionSheet, subscriptionGroupID: "21438486" ) But for MacOS, the only solution I have so far is this: Button("Manage Subscriptions") { if let url = URL(string: "macappstore://showAccountPage") { NSWorkspace.shared.open(url) } } Which makes the UI very bad, as we don't have a way to insert buttons on the SubscriptionStoreView( )
Jan ’24