---
title: "init(data:)"
framework: quartz
role: symbol
role_heading: Initializer
path: "quartz/qccomposition/init(data:)"
---

# init(data:)

Returns a composition object  initialized with the contents of a Quartz Composer composition file.

## Declaration

```swift
init!(data: Data!)
```

## Parameters

- `data`: The contents of a file created with the Quartz Composer developer tool.

## Return Value

Return Value A Quartz Composer composition object or nil if there is an error.

## See Also

### Creating a Composition

- [init(file:)](quartz/qccomposition/init(file:).md)
