Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Can we feasibly implement our own gesture recognizers? Help with Swipe gesture

$
0
0

Hi all.

Forms looks really exciting and I'm jumping on board and seeking to extend the tools we have available and make life a little easier for Forms devs. One big area of missing functionality at the moment is gesture recognition. We have TapGestureRecognizer but that's it. I'm currently trying to implement SwipeGestureRecognizer. I've created a similar shared implementation to that of Tap using BindableProperties, hooked up the iOS equivalent etc, but now I'm stuck with dispatching the actual event.

I see in the internal SendTapped method we provide a Xamarin.Forms.View, presumably Parent. How is the underlying class supposed to attach to an instance of a UIView when it only sees a View? Looking at the GestureRecognizers.Add method, it only changes the parent of each. Obviously it would be ideal if we could see the current implementation of a tap gesture, but barring that it would be helpful to walk through the logic of what should happen when the parent changes.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>