---
title: "matches(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/dropsession/id-swift.struct/matches(_:)"
---

# matches(_:)

Checks if the session value describes the same drag session as the object provided by AppKit.

## Declaration

```swift
func matches(_ dragInfo: any NSDraggingInfo) -> Bool
```
