A controller that manages the templates that provide the user interface for your app on the CarPlay screen.
- iOS 12.0+
An interface controller manages one or more templates in the navigation hierarchy. You don’t create the interface controller. Instead, the system creates it for you, and passes the controller to your app by way of the
application(_:. For more information, see Adding CarPlay Support to Your Navigation App.
After receiving the controller, store a reference to it in your app. Then set the root template by calling the
set method. To display another template in the navigation hierarchy, call
push, and use
pop to remove the top-most template.