title: Xamarin.Forms TapGestureRecognizer not working on IOS
body: <p>I have a very simple Xamarin.Forms app. It's just for testing, and at the moment is just supposed to display messages when different boxes on the screen are tapped. The tap gesture isn't working though.</p>
  
  <p>Here is my XAML:</p>
  
  <p>
  
      
      </p>
  
  <pre><code>    &lt;!-- Header --&gt;
      &lt;Label Text="My Company"
             TextColor="White"
             FontSize="Large"
             BackgroundColor="#a6192e"
             HorizontalTextAlignment="Center" /&gt;
  
      &lt;!-- Body --&gt;
      &lt;FlexLayout FlexLayout.Grow="1"&gt;
  
          &lt;!-- Content --&gt;
          &lt;BoxView
                 BackgroundColor="#80225f"
                 FlexLayout.Grow="1" /&gt;
  
  
              &lt;Grid
                  BackgroundColor="#80225f"
                  Padding="20,50,50,20"
                  RowSpacing="20"
                  ColumnSpacing="20"&gt;
                  &lt;Grid.RowDefinitions&gt;
                      &lt;RowDefinition Height="300"/&gt;
                      &lt;RowDefinition Height="300"/&gt;
                  &lt;/Grid.RowDefinitions&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="280"/&gt;
                      &lt;ColumnDefinition Width="280"/&gt;
                      &lt;ColumnDefinition Width="280"/&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
  
                  &lt;BoxView
                      x:Name="App1Box"
                      BackgroundColor="Silver"
                      Grid.Row="0"
                      Grid.Column="0"
                      HorizontalOptions="FillAndExpand"
                      VerticalOptions="FillAndExpand"/&gt;
                  &lt;BoxView
                      BackgroundColor="Gray"
                      Grid.Row="0"
                      Grid.Column="0"
                      HeightRequest="60"
                      VerticalOptions="Start"/&gt;
  
                  &lt;Label
                      Grid.Row="0"
                      Grid.Column="0"
                      HorizontalTextAlignment="Center"
                      TextColor="White"
                      FontSize="Large"
                      FontAttributes="Bold"
                      Margin="10"&gt;
                      App1&lt;/Label&gt;
  
                  &lt;BoxView
                      x:Name="App2Box"
                      BackgroundColor="Silver"
                      Grid.Row="0"
                      Grid.Column="1"
                      HorizontalOptions="FillAndExpand"
                      VerticalOptions="FillAndExpand"/&gt;
                  &lt;BoxView
                      BackgroundColor="Gray"
                      Grid.Row="0"
                      Grid.Column="1"
                      HeightRequest="60"
                      VerticalOptions="Start"/&gt;
  
                  &lt;Label
                      Grid.Row="0"
                      Grid.Column="1"
                      HorizontalTextAlignment="Center"
                      TextColor="White"
                      FontSize="Large"
                      FontAttributes="Bold"
                      Margin="10"&gt;
                      App2&lt;/Label&gt;
  
                  &lt;BoxView
                      x:Name="App3Box"
                      BackgroundColor="Silver"
                      Grid.Row="0"
                      Grid.Column="2"
                      HorizontalOptions="FillAndExpand"
                      VerticalOptions="FillAndExpand"/&gt;
                  &lt;BoxView
                      BackgroundColor="Gray"
                      Grid.Row="0"
                      Grid.Column="2"
                      HeightRequest="60"
                      VerticalOptions="Start"/&gt;
  
                  &lt;Label
                      Grid.Row="0"
                      Grid.Column="2"
                      HorizontalTextAlignment="Center"
                      TextColor="White"
                      FontSize="Large"
                      FontAttributes="Bold"
                      Margin="10"&gt;
                      App3&lt;/Label&gt;
  
                  &lt;Button Grid.Row="1"
                          Grid.Column="0"
                          Text="Test Tap"
                          Clicked="OnMealsTapped"
                          WidthRequest="100"
                          HeightRequest="100"
                          BackgroundColor="Lime"
                          TextColor="Red"/&gt;
              &lt;/Grid&gt;
  
          &lt;!-- Navigation items--&gt;
          &lt;BoxView FlexLayout.Basis="50"
                   FlexLayout.Order="-1"
                   Color="#80225f" /&gt;
  
          &lt;!-- Aside items --&gt;
          &lt;BoxView FlexLayout.Basis="50"
                   Color="#80225f" /&gt;
  
      &lt;/FlexLayout&gt;
  
      &lt;!-- Footer --&gt;
      &lt;Label Text="Test App"
             FontSize="Large"
             BackgroundColor="Gray"
             HorizontalTextAlignment="Center" /&gt;
  &lt;/FlexLayout&gt;
  &lt;/ContentPage.Content&gt;
  </code></pre>
  
  <p></p>
  
  <p>And here is my C#:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  
  using Xamarin.Forms;
  
  namespace TESTAPP
  {
      public partial class MyPage : ContentPage
      {
          public MyPage()
          {
              InitializeComponent();
  
              var App1TapHandler = new TapGestureRecognizer();
              var App2TapHandler = new TapGestureRecognizer();
              var App3TapHandler = new TapGestureRecognizer();
  
              App1TapHandler.NumberOfTapsRequired = 1;
              App1TapHandler.Tapped += OnApp1Tapped;
  
              App2TapHandler.NumberOfTapsRequired = 1;
              App2TapHandler.Tapped += OnApp2Tapped;
  
              App3TapHandler.NumberOfTapsRequired = 1;
              App3TapHandler.Tapped += OnApp3Tapped;
  
              App1Box.GestureRecognizers.Add(App1BoxTapHandler);
              App2Box.GestureRecognizers.Add(App2BoxTapHandler);
              App3Box.GestureRecognizers.Add(App3BoxTapHandler);
          }
  
          private void OnApp1Tapped(object sender, EventArgs e)
          {
              DisplayAlert("App1","Lets use App1","OK");
          }
  
          private void OnApp2Tapped(object sender, EventArgs e)
          {
              DisplayAlert("App2", "Lets use App2", "OK");
          }
  
          private void OnApp3Tapped(object sender, EventArgs e)
          {
              DisplayAlert("App3", "Lets use App3", "OK");
          }
      }
  }
  </code></pre>
  
  <p>Button is there for testing. When tapping button I get the test alert message. Nothing happens when tapping any of the BoxViews.</p>
  
  <p>Why is that not working?</p>