I want to add a transition effect to my app from a ViewController to another.
I want use the transition effect that the Navigation Controller usually add (sliding effect) but without using the Navigation Controller.
What is the simplest and easiest way to achieve that? (I'm using swift 3)
EDIT:
My Code Now:
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func GoToMenu(_ sender: UIButton) {
//TRANSITION EFFECT
let nextVCID="010101"
guard let presentedController = self.storyboard?.instantiateViewController(withIdentifier: nextVCID) else { return }
presentedController.modalTransitionStyle = UIModalTransitionStyle.coverVertical
self.present(presentedController, animated: true, completion: nil)
}
}