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

# init(file:)

Returns a composition object initialized with a Quartz Composer composition file.

## Declaration

```swift
init!(file path: String!)
```

## Parameters

- `path`: A path to a file created with the Quartz Composer developer tool (.qtz extension).

## Return Value

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

## See Also

### Creating a Composition

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