Instantly share code, notes, and snippets.

Embed
What would you like to do?
let presentedViewController: UIViewController? = UIViewController()
struct Route {
var animateTransition: Bool
}
let route = Route(animateTransition: true)
let animated = presentedViewController == nil && route.animateTransition == false ? false : true
let animated2 = (presentedViewController == nil && route.animateTransition == false) ? false : true
let animated3 = !(presentedViewController == nil && route.animateTransition == false)
let animated4 = presentedViewController != nil || route.animateTransition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment