---
title: cancel()
framework: IdentityDocumentServicesUI
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+]
path: identitydocumentservicesui/iso18013mobiledocumentrequestcontext/cancel()
---

# cancel()

Cancels the current request from the relying party.

## Declaration

```swift
func cancel()
```
