catransition

Custom segue transition animation

纵饮孤独 提交于 2019-11-27 08:13:25
问题 I'm working on an app that utilizes the navigation controller. I have a certain view controller that has a left and right button in the navigation bar and each button segues to a different view controller. When I press the right button, I just call self.performSegue(withIdentifier: "ToDestination", sender: nil) and when I pop back I call _ = self.navigationController?.popViewController(animated: true) . My issue is when I press the left button. I can push and pop, but I want the transition to