Hi,
As mentioned in the documentation, you can call this AppStore.sync() method.
https://developer.apple.com/documentation/storekit/appstore/3791906-sync
Task {
// This call displays a system prompt that asks users to authenticate with their App Store credentials.
// Call this function only in response to an explicit user action, such as tapping a button.
try? await AppStore.sync()
}
I hope this helps.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: