<!--
{
  "availability" : [
    "iOS: 16.1.0 - 17.0.0",
    "iPadOS: 16.1.0 - 17.0.0",
    "macCatalyst: 16.1.0 - 17.0.0",
    "macOS: 13.0.0 - 14.0.0",
    "tvOS: 16.1.0 - 17.0.0",
    "visionOS: 1.0.0 -",
    "watchOS: 9.1.0 - 10.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreTransferable",
  "identifier" : "/documentation/CoreTransferable/ProxyRepresentation/init(exporting:importing:)-8q8zv",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Transferable"
    ],
    "preciseIdentifier" : "s:16CoreTransferable19ProxyRepresentationV9exporting9importingACyxq_Gq_xYaYbKc_xq_YaYbKctcfc"
  },
  "title" : "init(exporting:importing:)"
}
-->

# init(exporting:importing:)

Creates a transfer representation that’s imported and exported
by proxy through another transfer representation.

```
init(exporting: @escaping @Sendable (Item) async throws -> ProxyRepresentation, importing: @escaping @Sendable (ProxyRepresentation) async throws -> Item)
```

## Parameters

`exporting`

A closure that converts the item into
desired representation.

`importing`

A closure that converts the chosen representation
back into the transported item.

---

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)