Contents

onAssignedDocumentDidWithdraw(_:)

Adds an action to perform after an assigned document submission has been withdrawn.

Declaration

@MainActor @preconcurrency func onAssignedDocumentDidWithdraw(_ action: @escaping (URL) -> Void) -> some View

Parameters

  • action:

    An asynchronous closure that receives the document URL and executes after successful submission withdrawal.

Return Value

A view that executes the specified action after submission withdrawal.

Discussion

This action runs regardless of whether you provided an onAssignedDocumentWillWithdraw(_:) action, and only runs if the withdrawal completes successfully.

AssignedDocumentSubmissionButton(documentURL: documentURL)
    .onAssignedDocumentDidWithdraw { url in
        // Handle successful withdrawal
        logEvent("Assigned document withdrawn successfully!")
    }

See Also

Submission