<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DropInfo/hasItemsConforming(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8DropInfoV18hasItemsConforming2toSbSay22UniformTypeIdentifiers6UTTypeVG_tF::OverloadGroup"
  },
  "title" : "hasItemsConforming(to:)"
}
-->

# hasItemsConforming(to:)

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

```
func hasItemsConforming(to contentTypes: [UTType]) -> Bool
```

## Parameters

`contentTypes`

The uniform type identifiers to query for.

## Return Value

Whether at least one item conforms to one of `contentTypes`.

---

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)