Contents

refundRequestSheet(for:isPresented:onDismiss:)

Display the refund request sheet for the given transaction.

Declaration

@preconcurrency nonisolated func refundRequestSheet(for transactionID: Transaction.ID, isPresented: Binding<Bool>, onDismiss: (@MainActor (Result<Transaction.RefundRequestStatus, Transaction.RefundRequestError>) -> ())? = nil) -> some View

Parameters

  • transactionID:

    The transaction ID to request a refund for.

  • isPresented:

    A binding to a Boolean value that determines whether the refund request sheet is presented.

  • onDismiss:

    The closure to execute when dismissing the sheet, with the result of the refund request provided as a parameter.

See Also

Interacting with the App Store and Apple Music