---
title: "addNavigationChildContext(_:)"
framework: classkit
role: symbol
role_heading: Instance Method
path: "classkit/clscontext/addnavigationchildcontext(_:)"
---

# addNavigationChildContext(_:)

Adds a child context that users can navigate to from this context.

## Declaration

```swift
func addNavigationChildContext(_ child: CLSContext)
```

## Parameters

- `child`: A context that you want to add as a presentable child from this context.

## Discussion

Discussion Use this method to add a child to the navigationChildContexts collection of a given context. This only affects presentation. The method doesn’t alter your app’s context hierarchy because it has no effect on the context’s identifierPath.

## See Also

### Creating a context presentation hierarchy

- [navigationChildContexts](classkit/clscontext/navigationchildcontexts.md)
- [removeNavigationChildContext(_:)](classkit/clscontext/removenavigationchildcontext(_:).md)
