We know that we can use an if let statement as a shorthand to check for an optional nil then unwrap.
if let
However, I want to combine that with another expression
In Swift 3 Max MacLeod's example would look like this:
if let tabBarController = window!.rootViewController as? UITabBarController, tabBarController.viewControllers.count > 0 { println("do stuff") }
The where was replaced by ,
where
,