---
title: composition()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qccompositionlayer/composition()
---

# composition()

Returns the composition associated with the layer.

## Declaration

```swift
func composition() -> QCComposition!
```

## Return Value

Return Value The composition object associated with the layer or nil if there is none.
