<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/exportsItemProviders(_:onExport:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE20exportsItemProviders_8onExportQrSay22UniformTypeIdentifiers6UTTypeVG_SaySo14NSItemProviderCGyctF"
  },
  "title" : "exportsItemProviders(_:onExport:)"
}
-->

# exportsItemProviders(_:onExport:)

Exports a read-only item provider for consumption by shortcuts,
quick actions, and services.

```
nonisolated func exportsItemProviders(_ contentTypes: [UTType], onExport: @escaping () -> [NSItemProvider]) -> some View
```

## Parameters

`contentTypes`

The types of content that the view supports exporting.
An empty array means the view does not currently support exporting.

`onExport`

A closure that will be called on request of the items
by the shortcut or service.

## Discussion

If the associated view supports selection, the exported item should
reflect that selected subpart.

---

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)