title: Xamarin Forms MasterDetailPage - Secondary menu drawn twice on iOS
body: <p>My app uses Master-Detail navigation.<br>
  I push pages on the navigation stack to have back button functionality.<br>
  When pushing a page with ToolbarItems (secondary menu), that's fine on Android, but it doubles the menu items on iOS.<br>
  Switching to the same page (not pushing), there is no problem on iOS (secondary menu shown once, as expected).</p>
  
  <p>I adopted the official MasterDetail sample (<a href="https://github.com/xamarin/xamarin-forms-samples/tree/master/Navigation/MasterDetailPage" rel="nofollow noreferrer">https://github.com/xamarin/xamarin-forms-samples/tree/master/Navigation/MasterDetailPage</a>) to show what I mean, see <a href="https://www.dropbox.com/s/45x6u09vlia84x5/MasterDetailPage.zip?dl=0" rel="nofollow noreferrer">solution zip file</a>.</p>
  
  <p>Compile and start it on iOS device, press the button on the first page to open a sub page, and you should see doubled menu items (actually one which is drawn twice), so there are two rows of secondary menu items visible instead of just one.<br>
  The two rows are identical, both rows (and their menu items) react when tapping.  </p>
  
  <p>If you select the Reminder page through the Hamburger menu, the secondary menu is fine (even on iOS), as the page is not pushed on the navigation stack but switched.</p>
  
  <p>Some interesting parts:</p>
  
  <p>ContactsPage.xaml.cs:<br>
  <code>SwitchToDetailPageAndPushOnNavStack()</code></p>
  
  <p>ReminderPage.xaml:<br>
  <code>&lt;ContentPage.ToolbarItems&gt;
      &lt;ToolbarItem Text="Do something" Clicked="OnDoSomethingClicked" Order="Secondary" /&gt;
   &lt;/ContentPage.ToolbarItems&gt;</code></p>
  
  <p>What can I do to get rid of this weird effect on iOS?</p>