---
title: "reloadRootControllers(withNamesAndContexts:)"
framework: watchkit
role: symbol
role_heading: Type Method
path: "watchkit/wkinterfacecontroller/reloadrootcontrollers(withnamesandcontexts:)"
---

# reloadRootControllers(withNamesAndContexts:)

Loads the specified interface controllers and rebuilds the app’s page-based interface.

## Declaration

```swift
@MainActor @preconcurrency class func reloadRootControllers(withNamesAndContexts namesAndContexts: [(name: String, context: AnyObject)])
```

## Parameters

- `namesAndContexts`: An array of tuples. Each tuple must contain the following named elements:

## Discussion

Discussion Call this method to reload the pages in your app’s page-based interface: At launch time. Use this method to customize the set of pages you want displayed. At runtime. Use it to change the active set of pages, adding or removing pages as needed.

## See Also

### Navigating a page-based interface

- [reloadRootPageControllers(withNames:contexts:orientation:pageIndex:)](watchkit/wkinterfacecontroller/reloadrootpagecontrollers(withnames:contexts:orientation:pageindex:).md)
- [WKPageOrientation](watchkit/wkpageorientation.md)
- [becomeCurrentPage()](watchkit/wkinterfacecontroller/becomecurrentpage().md)
