<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macOS: 26.4.0 -",
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/onAssignedDocumentDidWithdraw(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewP08ClassKitB0E29onAssignedDocumentDidWithdrawyQry10Foundation3URLVcF"
  },
  "title" : "onAssignedDocumentDidWithdraw(_:)"
}
-->

# onAssignedDocumentDidWithdraw(_:)

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

```
@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(_:)`](/documentation/SwiftUI/View/onAssignedDocumentWillWithdraw(_:))
action, and only runs if the withdrawal completes successfully.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)