---
title: "validateDrop(info:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/dropdelegate/validatedrop(info:)"
---

# validateDrop(info:)

Tells the delegate that a drop containing items conforming to one of the expected types entered a view that accepts drops.

## Declaration

```swift
@MainActor @preconcurrency func validateDrop(info: DropInfo) -> Bool
```

## Discussion

Discussion Specify the expected types when you apply the drop modifier to the view. The default implementation returns true.

## See Also

### Receiving drop information

- [dropEntered(info:)](swiftui/dropdelegate/dropentered(info:).md)
- [dropExited(info:)](swiftui/dropdelegate/dropexited(info:).md)
- [dropUpdated(info:)](swiftui/dropdelegate/dropupdated(info:).md)
- [performDrop(info:)](swiftui/dropdelegate/performdrop(info:).md)
