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}">
        <TapGestureRecognizer Command="{Binding ExecuteMyCommand}" />

I don't see any exceptions in the log that would indicate why this isn't working. Any help on this would be great.

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,291 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andrew 16 Reputation points

    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.


    0 comments No comments