Created
May 24, 2019 09:15
-
-
Save Denismih/0977eb0c3e02c17049925c6087953a1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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