I'm trying to get the currently displayed ViewController using the following:
let currentViewController = UIApplication.sharedApplication().keyWindow!.rootViewController?.presentedViewController
This property gives me the TabBarController. The only property after presentedViewController is "childViewControllers".
How could I use this to attain the currently displayed ViewController?