<!--
{
  "availability" : [
    "iOS: 13.4.0 - 27.2.0",
    "iPadOS: 13.4.0 - 27.2.0",
    "macCatalyst: 13.4.0 - 27.2.0",
    "macOS: 10.15.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/DropInfo/itemProviders(for:)-b6fo",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI8DropInfoV13itemProviders3forSaySo14NSItemProviderCGSaySSG_tF"
  },
  "title" : "itemProviders(for:)"
}
-->

# itemProviders(for:)

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

```
func itemProviders(for types: [String]) -> [NSItemProvider]
```

## Discussion

This function is only valid during the `performDrop()` action.

---

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)