I have two UIViews - UIView1 and UIView2 in one UIViewController, both same size (about half screen) and at same location with UIView1 visible and on top of UIView2.
I want to be able to swipe UIView1 left to right to display UIView2, with transition effect smooth like Safari back / forward swipe in iPhone.
Also on reverse I want to be able to swipe UIView2 right to left to display UIView1, with transition effect smooth like Safari back / forward swipe in iPhone.
How do I do this? I saw several examples for the complete UIViewcontroller (using push segue), but couldn't figure just UIViews.