---
title: "init(data:isTemplate:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/displayrepresentation/image-swift.struct/init(data:istemplate:)"
---

# init(data:isTemplate:)

Creates an image object from the specified data.

## Declaration

```swift
init(data: Data, isTemplate: Bool? = nil)
```
