Add velocityInView: to UILongPressGestureRecognizer
| Originator: | oliver | ||
| Number: | rdar://21678939 | Date Originated: | 2015-07-06 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.4 |
| Classification: | Enhancement | Reproducible: | N/A |
Summary: As UILongPressGestureRecognizer is a continuous recognizer it acts somewhat like UIPanGestureRecognizer. However unlike pan it has no facility for measuring velocity in a view has the user moves their finger around. Steps to Reproduce: Use UILongPressGestureRecognizer and want to get the velocity of the gesture during UIGestureRecognizerStateChanged or UIGestureRecognizerStateEnded for example. Expected Results: That you could get the velocity of the long press gesture's movement. Actual Results: You can't. Instead you have to construct to mess of UIPanGestureRecognizer and UILongPressGestureRecognizer similtaneous recognizers or subclass UILongPressGestureRecognizer to do velocity sampling like the internal implementation of UIPanGestureRecognizer does. Version: Version 6.4 (6E35b) Notes: Configuration: iOS 8 SDK Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
This is such a common request - please Apple respond!