<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "macOS: 15.2.0 -",
    "tvOS: 18.2.0 -",
    "visionOS: 2.2.0 -",
    "watchOS: 11.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreTransferable",
  "identifier" : "/documentation/CoreTransferable/Transferable/init(importing:contentType:)-74t08",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Transferable",
      "CoreTransferable"
    ],
    "preciseIdentifier" : "s:16CoreTransferable0B0PAAE9importing11contentTypex10Foundation4DataV_07UniformE11Identifiers6UTTypeVSgtYaKcfc"
  },
  "title" : "init(importing:contentType:)"
}
-->

# init(importing:contentType:)

Using the type’s `Transferable` conformance implementation, instantiates a
value from given data.

```
init(importing data: Data, contentType: UTType?) async throws
```

## Parameters

`data`

Binary data that can be used to instantiate an item

`contentType`

A content type that corresponds
to the structure of the data. If no content type is provided, the framework
calls into every transfer representation provided in the implementation
of the [`Transferable`](/documentation/CoreTransferable/Transferable) conformance (`transferRepresentation` static
property) until it finds one that can handle the data.

## Discussion

The default implementation of this initializer is available to all
types that conform to [`Transferable`](/documentation/CoreTransferable/Transferable) protocol.

---

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)