John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 987 forks source link

How can I know the percentage of interactive transition? #246

Closed kitgary closed 10 years ago

kitgary commented 10 years ago

In my app, I need to adjust some effect when user pans the view, so I need to know the percentage of interactive transition, in the code, there is a method

inside SWContextTransitionObject, which is not supported, how can I modify it to know the percentage, or any other way I can get that information?

Thanks

John-Lluch commented 10 years ago

Support for custom transitioning is meant for viewController replacement, not for panning or revealing. Instead, use the delegates of the SWRevealViewController for determining the reveal progress. This was asked before, please look at my previous answers. Thanks.