ios - Swift 2: Showing View Controller by UISwipeGestureRecognizer. How do I make the view controller follow my finger -


i using uiswipegesturerecognizer show view controller,

and don't know how make view controller follow finger.

how do this?

the direction down up, , if swiped, view controller show up.

how make view controller follow finger?

//------------right swipe gestures in view--------------//

    let swiperight = uiswipegesturerecognizer(target: self, action: selector("rightswiped"))     swiperight.direction = uiswipegesturerecognizerdirection.right     self.view.addgesturerecognizer(swiperight) 

// calling method :

   func rightswiped()     {         self.navigationcontroller?.popviewcontrolleranimated(true)     } 

you want pushview controller use uiswipegesturerecognizerdirection.left in above code


Comments