xamarin/Xamarin.Forms

[Bug] On iOS, menu button of MasterDetailPage disappears when using NavigationPage's InsertPageBefore and PopToRootAsync

Open

#7,051 opened on Aug 2, 2019

 (6 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/1 :clock1:hacktoberfest 🍻help wantedin-progressp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

On iOS, when using a MasterDetailPage, the "menu" button disappears when using NavigationPage's InsertPageBefore and PopToRootAsync to switch Detail page. No issue on Android, the "menu" icon does not disappear. A workaround on iOS consists in creating a new NavigationPage when switching the Detail page, but it causes a flickering issue on Android.

Steps to Reproduce

  1. On iOS, create a MasterDetailPage. The Detail page should be a NavigationPage. Open the app, the menu button is displayed and the menu opens when the user clicks on the button.
  2. Switch the Detail page by using a combination of InsertPageBefore and PopToRootAsync on the NavigationPage. The menu button disappears.

Expected Behavior

The menu button should not disappear, since the app's MainPage is the same MasterDetailPage with the same Master and the same Detail's NavigationPage. On Android, the hamburger icon does not disappear.

Actual Behavior

The menu button disappears.

Basic Information

  • Version with issue: XF 4.1
  • Last known good version: I'm not sure it has ever worked
  • IDE: VS 2019 16.2.0
  • Platform Target Frameworks: iOS 12.4

Reproduction Link

TestIos.zip

Contributor guide