Esqarrouth / EZSwipeController

:point_up_2: UIPageViewController like Snapchat/Tinder/iOS Main Pages
MIT License
842 stars 71 forks source link

Feature Request: Make viewController appear over current context #39

Open otymartin opened 8 years ago

otymartin commented 8 years ago

@goktugyil

I would like to be able to have my last view controller appear right above my second last so to maintain context. Much like this example.

snapchat_concept

Esqarrouth commented 8 years ago

I have no idea how to pull this off 😦

otymartin commented 8 years ago

@goktugyil Do you mean the animation or the functionality itself? I was just hoping for the functionality, the animation I can figure out😂

Esqarrouth commented 8 years ago

So vc no 1 should appear on top of vc no 2?

otymartin commented 8 years ago

@goktugyil I have

let swipeArray = [vc1, vc2, vc3]
// vc3 should appear above vc2
Esqarrouth commented 8 years ago

Maybe make a background vc identical to vc2? and put that behind vc3 too?

JFKingsley commented 8 years ago

@otymartin Personally, from looking at the design you've provided it appears only the background transfers between the views.

Therefore I'd recommend making a container ViewController with your background view (In this case the video player of the flowers), and then stacking the EZSwipeController's view object on top via a function such as addChildViewController, making sure your SwipeController View Controllers had transparent backgrounds.