---
title: "init(importing:)"
framework: appintents
role: symbol
role_heading: Initializer
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+, watchOS 27.2+]
path: "appintents/intentvaluerepresentation/init(importing:)-7cl3z"
---

# init(importing:)

Creates a value representation that imports a system intent value into an entity.

## Declaration

```swift
init(importing: @escaping @Sendable (IntentValue) async throws -> Item)
```

## Parameters

- `importing`: A closure that converts a system intent value to an entity.

## Discussion

Discussion Use this initializer when your entity can be created from a system type, but has no meaningful representation to export back out. The entity’s metadata declares the system type as importable only, and the entity is never offered for export as that type. Example struct LocationEntity: AppEntity, Transferable {     static var transferRepresentation: some TransferRepresentation {         IntentValueRepresentation(             importing: { place in                 guard let coordinate = place.coordinate else {                     throw ImportError.missingCoordinate                 }                 return LocationEntity(                     name: place.commonName ?? "Unknown Location",                     latitude: coordinate.latitude,                     longitude: coordinate.longitude                 )             }         )     } }
