I\'m trying to present a ViewController if there is any saved data in the data model. But I get the following error:
ViewController
Warning: A
I have tried so many approches! the only useful thing is:
if var topController = UIApplication.shared.keyWindow?.rootViewController { while (topController.presentedViewController != nil) { topController = topController.presentedViewController! } }