---
title: "~=(_:_:)"
framework: IdentityDocumentServices
role: symbol
role_heading: Operator
platforms: [iOS 26.0+, iPadOS 26.0+, macOS 26.0+]
path: "identitydocumentservices/identitydocumentpresentmenterror/code-swift.enum/~=(_:_:)"
---

# ~=(_:_:)

Pattern matching operator for matching error codes directly. This enables traditional switch/case pattern matching on error codes.

## Declaration

```swift
static func ~= (lhs: IdentityDocumentPresentmentError.Code, rhs: any Error) -> Bool
```
