<!--
{
  "availability" : [
    "iOS: 13.4.0 -",
    "iPadOS: 13.4.0 -",
    "macCatalyst: 13.4.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DropInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8DropInfoV"
  },
  "title" : "DropInfo"
}
-->

# DropInfo

The current state of a drop.

```
struct DropInfo
```

## Topics

### Getting the drop location

[`var location: CGPoint`](/documentation/SwiftUI/DropInfo/location)

The location of the drag in the coordinate space of the drop view.

### Checking for items

[`func hasItemsConforming(to: [UTType]) -> Bool`](/documentation/SwiftUI/DropInfo/hasItemsConforming(to:)-47irh)

Indicates whether at least one item conforms to at least one of the
specified uniform type identifiers.

[`func itemProviders(for: [UTType]) -> [NSItemProvider]`](/documentation/SwiftUI/DropInfo/itemProviders(for:)-93409)

Finds item providers that conform to at least one of the specified
uniform type identifiers.

### Deprecated symbols

[`func hasItemsConforming(to: [String]) -> Bool`](/documentation/SwiftUI/DropInfo/hasItemsConforming(to:)-4qeez)

Returns whether at least one item conforms to at least one of the
specified uniform type identifiers.

[`func itemProviders(for: [String]) -> [NSItemProvider]`](/documentation/SwiftUI/DropInfo/itemProviders(for:)-b6fo)

Returns an array of items that each conform to at least one of the
specified uniform type identifiers.

### Instance Methods

[`func hasItemsConforming(to:)`](/documentation/SwiftUI/DropInfo/hasItemsConforming(to:))

Indicates whether at least one item conforms to at least one of the
specified uniform type identifiers.

[`func itemProviders(for:)`](/documentation/SwiftUI/DropInfo/itemProviders(for:))

Finds item providers that conform to at least one of the specified
uniform type identifiers.

---

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)