---
title: parent
framework: classkit
role: symbol
role_heading: Instance Property
path: classkit/clscontext/parent
---

# parent

The direct ancestor of this context.

## Declaration

```swift
weak var parent: CLSContext? { get }
```

## See Also

### Managing context hierarchy

- [identifierPath](classkit/clscontext/identifierpath.md)
- [removeFromParent()](classkit/clscontext/removefromparent().md)
- [addChildContext(_:)](classkit/clscontext/addchildcontext(_:).md)
- [descendant(matchingIdentifierPath:completion:)](classkit/clscontext/descendant(matchingidentifierpath:completion:).md)
