Until the issue with `` on iOS is fixed I created a custom control to wrap a Shape
in a ContentView
and set the TapGestureRecognizer
on the ContentView
instead. The code has been attached.
TapGestureRecognizer Not working on iOS
Andrew
16
Reputation points
I'm working on an application where I've used TapGestureRecognizer
on a Path
. This works correctly in Android but when I build and debug on an iOS device (physical or emulated) the command bound to the recognizer doesn't work. The code is as follows:
<shapes:Path Data="{StaticResource CustomIconResource}">
<shapes:Path.GestureRecognizers>
<TapGestureRecognizer Command="{Binding ExecuteMyCommand}" />
</shapes:Path.GestureRecognizers>
</shapes:Path>
I don't see any exceptions in the log that would indicate why this isn't working. Any help on this would be great.
1 answer
Sort by: Most helpful
-
Andrew 16 Reputation points
2020-12-07T16:23:22.007+00:00