<!--
{
  "availability" : [
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceController/pushController(withName:context:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceController(im)pushControllerWithName:context:"
  },
  "title" : "pushController(withName:context:)"
}
-->

# pushController(withName:context:)

Pushes a new interface controller onto the screen.

```
func pushController(withName name: String, context: Any?)
```

## Parameters

`name`

The name of the interface controller you want to display. In your storyboard, the name of an interface controller is stored in the object’s Identifier property, which is located in the attributes inspector.

`context`

An object to pass to the new interface controller. Use the object in this parameter to communicate important information to the new interface controller, such as the data to display or any relevant state information. You may specify `nil` for this parameter if you want, but doing so is not recommended.

## Discussion

Use this method to perform a navigation-style transition to the specified interface controller. The system initializes the new interface controller with the specified context object and animates the transition asynchronously. During the transition, the currently visible interface controller’s content disappears from the screen and is replaced by the content of the new controller.

Always call this method from your WatchKit extension’s main thread.

> Note:
> If Item Pagination  is enabled, do not use this method to respond to the selection of a table row. Use ``doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceTable/performSegue(forRow:)``  instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)