xamarin/Xamarin.Forms

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

Aperta

#7051 aperta il 2 ago 2019

 (6 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
e/1 :clock1:hacktoberfest 🍻help wantedin-progressp/iOS 🍎t/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor