UIView-DragDrop
UIView-DragDrop copied to clipboard
Additional Delegate call, and common superview hit testing
There are 2 changes here:
- Add a delegate call for when the view did return to the starting position
- More importantly - if views were not direct siblings of each other, the hit testing for hover and drop were not correct. Added in a check to use the nearest parent view of both views (drop views, and the dragged view) in order to do hover and drop testing.
Cool. Thanks @slangley. We should implement the new delegate method in the example project.
Speaking of the example project.. it looks like it is broken under iOS 8.1. Funny how things tend to break when neglected for a little while. Issue #6 created. I'll see if I can make some time to take a closer look.
I can implement in the example, and see if I can resolve #6