xamarin/Xamarin.Forms

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

オープン

#7,051 opened on 2019/08/02

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)C# (1,926 件のフォーク)batch import
e/1 :clock1:hacktoberfest 🍻help wantedin-progressp/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド