So, I've updated to Xcode 10 and iOS 12 today and now I'm getting the following error message when I call topViewController from UINavigationController:
Ambiguous use of 'topViewController'
if let myVC = navigationController.topViewController as? MyViewController {}
Even though the following code works just fine.
if let myVC = navigationController.visibleViewController as? MyViewController {}
Does anyone know any changes in iOS 12 regarding this?