How to make SWRevealViewController crawl "over" the main view controller, rather than "push" it?

I am using SWRevealController with a fast one and it works as intended, but I would like to tweak it a bit.

When you exit the menu by moving or pressing the button, a new view appears when you press the main controller to the side.

What I would like to do is slide around the main view controller, so that the main view controller stays where it is with the new view controller sliding over it.

It makes sense? The only example I can think of is the Reddit News app for Android. The extended menu does not affect the main view controller, which it simply spreads on top of it. (I know that it is different from Android)

Can this be done using the SWRevealViewController class?

+7
ios swift uistoryboardsegue swrevealviewcontroller
source share
1 answer

what you are trying to do is not the expected behavior of the SWRevealViewController , and for this you need some low-level coding to tweak the animation the way you describe.

However, I would recommend using this pod instead of https://github.com/jonkykong/SideMenu . This is an updated version, and as you can see, it offers several animations for you to choose from, the one you are looking for includes a slide. All of this is really well documented.

0
source share

All Articles