Interactive animation with panGesture in iOS

How to interact with animation using panGesnture?

I have a sheet view which is currently at the center of the screen. with pan gesture I am able to pan it around the screen in vertical direction and when gesture ends I am animating sheetView back to its original position.

I want to make it interactive and handle my panGesture even if the animation is still in progress.
This is very similar to sheetView in AppleMaps app.
Can someone help me in achieving this?

Here is my sample project: sheetView

@fe_tech Please check out this tutorial when you get a chance:

http://www.swiftkickmobile.com/building-better-app-animations-swift-uiviewpropertyanimator/

I hope it helps. Thank you!

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.