ios - How to swipe a View controller over the top of another view controller? -


i have table view controller , view controller. requirement need swipe table view controller half on view controller when swipe view controller. image can show this:

enter image description here

is possible achieve using swipegesture . if possible how can in swift3?

while there libraries out there you, if going yourself, basic idea can create "swipe edge" gesture recognizer initiate custom presentation of view controller (that has menu on it). consists of:

  • a custom transitioning delegate (conforming uiviewcontrollertransitioningdelegate protocol) specifies animation controller , interaction controller (both described below) used during presentation of next scene;

  • an animation controller (conforming uiviewcontrolleranimatedtransitioning) dictates animation of scene right edge;

  • an interaction controller (a uipercentdriveninteractivetransition) can use optionally drive transition via gesture;

  • a presentation controller (a uipresentationcontroller subclass) dictates whether presented view removed or not (in case not want removed), other chrome animated alongside animated presentation of new scene (e.g. dim or blur presenting view); and

  • gesture recognizers drive interaction controller.

for more information, see wwdc videos custom transitions using view controllers , a inside presentation controllers.

see https://github.com/robertmryan/swiftcustomtransitions/tree/rightside swift 3 example renders following ux:

enter image description here

this admittedly complicated enough may want consider third party libraries presenting slide-in menus. if wanted "roll own", these basic pieces involved.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -