1
votes

I have a view at the bottom of my view controller. How can I set up an interactive transition such that as I drag the view up vertically (perhaps using UIPanGestureRecognizer), another view controller is pushed up?

Similar to the default navigation controller behaviour with swiping left and right to push/pop, except this would be vertical.

1

1 Answers

0
votes

You can use UIDynamicAnimator class for animation.

You will have to use AttachmentBehavior for such kind of attachment animation. It's subclass of UIDynamicAnimator. Please check this question. It might help you.