Skip to content

Instantly share code, notes, and snippets.

@Denismih
Created May 24, 2019 09:15
Show Gist options
  • Save Denismih/0977eb0c3e02c17049925c6087953a1e to your computer and use it in GitHub Desktop.
Save Denismih/0977eb0c3e02c17049925c6087953a1e to your computer and use it in GitHub Desktop.
let transition: CATransition = CATransition()
transition.duration = 0.5
transition.timingFunction = CAMediaTimingFunction(name: CAMediaTimingFunctionName.easeInEaseOut)
transition.type = CATransitionType.reveal
transition.subtype = CATransitionSubtype.fromLeft
self.view.window!.layer.add(transition, forKey: nil)
self.dismiss(animated: false, completion: nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment