I have two interface controllers, controller1.swift
and controller2.swift
These are connected with push-segue (after button action). But in some cases I need to skip controller1
and show just controller2
. In iOS app I do this in appDelegate
, setting rootViewcontroller
, etc. What is the way to do this in Apple Watch Extension?
any guides or help?
let rootControllerIdentifier = "FirstInputInterfaceController"
WKInterfaceController.reloadRootControllers(withNames: [rootControllerIdentifier], contexts: nil)
let rootControllerIdentifier = "FirstInputInterfaceController"
WKInterfaceController.reloadRootControllers(withNamesAndContexts: [(name: rootControllerIdentifier, context: [:] as AnyObject)])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With