Flip Segue personalizado en Swift
Aquí está mi código para mi Segue personalizado
class FlipFromRightSegue: UIStoryboardSegue {
override func perform() {
let source:UIViewController = self.sourceViewController as UIViewController
let destination:UIViewController = self.destinationViewController as UIViewController
UIView.transitionWithView(source.view, duration: 1.0, options: .CurveEaseInOut | .TransitionFlipFromRight, animations: { () -> Void in
source.view.addSubview(destination.view)
}) { (finished) -> Void in
destination.view.removeFromSuperview()
source.presentViewController(destination, animated: false, completion: nil)
}
}
}
Pensé que esto funcionaba, pero en realidad la vista cambia solo cuando el segue ya se realizó. ¿Qué debo hacer para que la vista cambie cuando el "Voltear" está en el medio?
Gracias por adelantado.