---
title: "init(exporting:importing:)"
framework: coretransferable
role: symbol
role_heading: Initializer
path: "coretransferable/proxyrepresentation/init(exporting:importing:)-8q8zv"
---

# init(exporting:importing:)

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

## Declaration

```swift
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.
