Swift - UIView.transitionFromView - Swift - UIView.transitionFromView - swift swift

Swift - UIView.transitionFromView -


You've declared your view properties as weak, so they're getting released as soon as it appears they're no longer needed. Just change them to strong (by removing "weak") and you should be golden:

@IBOutlet var backView: UIView!@IBOutlet var frontView: UIView!