import StoreKit import SwiftUI struct StoreView: View { @State private var manage = false var body: some View { VStack { Button("Restore Purchases") { Task { try? await AppStore.sync() } } Button("Manage subscription") { manage = true } Link("Terms of Use", destination: URL(string: "https://example.com/terms")!) } .manageSubscriptionsSheet(isPresented: $manage) } }