- drag and drop the VDSFlipAnimation class to your swift project.
- animate any view or even add animation to navigation controller by calling the different flip animations.
eg: profileImageView.flipLeft()
profileImageView.flipRight()
profileImageView.flipTop()
profileImageView.flipBottom()
profileImageView.flipCurlUp()
profileImageView.flipCurlDown()
-
or to navigation controller as
eg: let vc : SecondViewController = self.storyboard?.instantiateViewController(withIdentifier: "SecondViewController") as! SecondViewController
self.navigationController?.view.flipRight() // flip animation self.navigationController?.pushViewController(vc, animated: false)
-
to popViewcontroller animation: eg: self.navigationController?.view.flipLeft() // any animation self.navigationController?.popViewController(animated: false)
-
That's It Enjoyy!!
Youtube: https://youtu.be/A0u67x4wXa4