---
title: "loadComposition(fromFile:)"
framework: quartz
role: symbol
role_heading: Instance Method
path: "quartz/qcview/loadcomposition(fromfile:)"
---

# loadComposition(fromFile:)

Loads the composition file located at the specified path.

## Declaration

```swift
func loadComposition(fromFile path: String!) -> Bool
```

## Parameters

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

## Return Value

Return Value If unsuccessful, returns false; any composition that’s already loaded in the view remains loaded.

## See Also

### Loading a Composition

- [load(_:)](quartz/qcview/load(_:).md)
- [loadedComposition()](quartz/qcview/loadedcomposition().md)
- [unloadComposition()](quartz/qcview/unloadcomposition().md)
