---
title: "init(exporter:)"
framework: cloudkit
role: symbol
role_heading: Initializer
path: "cloudkit/cksharetransferrepresentation/init(exporter:)"
---

# init(exporter:)

Creates and initializes a transfer representation.

## Declaration

```swift
init(exporter: @escaping @Sendable (Item) throws -> CKShareTransferRepresentation<Item>.ExportedShare)
```

## Parameters

- `exporter`: A closure that provides a doc://com.apple.cloudkit/documentation/CloudKit/CKShareTransferRepresentation/ExportedShare representation of the specified Item.

## Return Value

Return Value A CKShareTransferRepresentation.ExportedShare.
