Bug 56072 - HidesBottomBarWhenPushed does nothing
Summary: HidesBottomBarWhenPushed does nothing
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.5.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-05-05 20:42 UTC by Paul Brenner
Modified: 2018-02-14 19:43 UTC (History)
3 users (show)

Tags: ac
Is this bug a regression?: ---
Last known good build:

Sample showing issue (1.38 MB, application/zip)
2017-05-05 20:42 UTC, Paul Brenner

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Paul Brenner 2017-05-05 20:42:42 UTC
Created attachment 21989 [details]
Sample showing issue

I have a tabbed page with a page and a page in a navigation controller. On the page with the navigation controller, there is a button that will do a push to another page. When the page is pushed I want to remove the tab bar. And when the user hits back, I want the tab bar to reappear. The property HidesBottomBarWhenPushed on a UIViewController is supposed to do just that. 

Setting that property in a Xamarin.ios project works perfectly, does exactly what it is supposed to do.

Setting the property in a custom renderer in a Xamarin.forms project does nothing, the tab bar won't disappear when the page is pushed. 

Tested on and

The attached zip has the Xamarin.ios project as well as the Xamarin forms project.
Comment 1 Paul DiPietro [MSFT] 2017-05-05 22:17:57 UTC
Thanks for the reproduction; setting to confirmed for further investigation.
Comment 2 Paul Brenner 2017-05-25 20:33:44 UTC
For others having this problem, found a workaround.

Set TabBarController.TabBar.Hidden to true in a custom renderer.
It will leave an empty space where the bar was, to fix, set the frame to:

TabBarController.View.Subviews[1].Frame = new CGRect(TabBarController.View.Subviews[1].Frame.X, TabBarController.View.Subviews[1].Frame.Y, TabBarController.View.Subviews[1].Frame.Width, 0);
Comment 3 Adam Hartley [MSFT] 2017-12-12 09:46:22 UTC
I can confirm that this is still occurring in Forms 2.5 using the sample project provided.
Comment 4 Paul Brenner 2018-02-14 19:43:26 UTC
See https://github.com/xamarin/Xamarin.Forms/issues/1887