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

# exportableToServices(_:)

Exports items for consumption by shortcuts,
quick actions, and services.

```
nonisolated func exportableToServices<T>(_ payload: @autoclosure @escaping () -> [T]) -> some View where T : Transferable
```

## Parameters

`payload`

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.

```
var title: String
var body: some View {
    Color.pink
        .frame(width: 400, height: 400)
        .exportableToServices([title])
}
```

---

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)