---
title: dependencies
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/operation/dependencies
---

# dependencies

An array of the operation objects that must finish executing before the current object can begin executing.

## Declaration

```swift
var dependencies: [Operation] { get }
```

## Discussion

Discussion This property contains an array of NSOperation objects. To add an object to this array, use the addDependency(_:) method. An operation object must not execute until all of its dependent operations finish executing. Operations are not removed from this dependency list as they finish executing. You can use this list to track all dependent operations, including those that have already finished executing. The only way to remove an operation from this list is to use the removeDependency(_:) method.

## See Also

### Managing Dependencies

- [addDependency(_:)](foundation/operation/adddependency(_:).md)
- [removeDependency(_:)](foundation/operation/removedependency(_:).md)
