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

# init(file:)

Initializes and returns a composition layer using the Quartz Composer composition in the specified file.

## Declaration

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

## Parameters

- `path`: A string that specifies the location of a Quartz Composer composition.

## Return Value

Return Value The initialized QCCompositionLayer object or nil if initialization is not successful.

## See Also

### Creating a Composition Layer

- [init(composition:)](quartz/qccompositionlayer/init(composition:).md)
