I want to have a button on my navigation bar \"Reset\" and I would like this to be connected to an IBAction to sort of \"restart\" the controller.
IBAction
I ha
You can change rootViewController of your application:
UIApplication.shared.keyWindow?.rootViewController = UIViewController()