52inc / Pulley

A library to imitate the iOS 10 Maps UI.
https://cocoapods.org/pods/Pulley
MIT License
2.02k stars 265 forks source link

drawerPositionDidChange called too many times. #377

Open dcristolovean opened 4 years ago

dcristolovean commented 4 years ago

I'm trying to determine when the drawer reaches a certain position and do some visual updates in my app. The only way I see for that is the drawerPositionDidChange delegate. The only problem with this is that the delegate is called at least 5 (five !) time during a transition, so it can't be used reliably.

Any way to determine if the drawer changed from .closed to .open just once, not five times ?