I need to switch between two subviews, for that I am using flip animation, but it flips whole screen not subview. Here is the code I used to flip:
UIView.transitionFromView(frontView, toView: backView, duration: 1, options: UIViewAnimationOptions.TransitionFlipFromRight | UIViewAnimationOptions.ShowHideTransitionViews, completion: nil)
I have created frontView and backView in StoryBoard, and backView hidden initially.
Please help me too flip only the subviews.