Contents

body

A builder expression that describes the process of importing and exporting an item.

Declaration

@TransferRepresentationBuilder<Self.Item> var body: Self.Body { get }

Discussion

Combine multiple existing transfer representations to compose a single transfer representation that describes how to transfer an item in multiple scenarios.

struct CombinedRepresentation: TransferRepresentation {
   var body: some TransferRepresentation {
       DataRepresentation(...)
       FileRepresentation(...)
   }
}

See Also

Implementing a transfer representation