0
votes

I have set my content page like below on all my xaml based on the documentation https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/ios/page-home-indicator

<ContentPage ... xmlns:ios="clr-namespace:Xamarin.Forms.PlatformConfiguration.iOSSpecific;assembly=Xamarin.Forms.Core" ios:Page.PrefersHomeIndicatorAutoHidden="true"> ...

also tried it in code behind

On().SetPrefersHomeIndicatorAutoHidden(true);

It's working on first load of the page, but it's not when you navigate to next page.

2
I am not exactly clear on the context here. Do you set the same property on the next page as well but despite that the home indicator still shows up?Mouse On Mars
Yes I have set the same property on the next page as well but it doesn't work if you navigate to it. Only on the page loaded first. I have also tried to change the startup page to see if it's working, same behavior, it works on first loaded page and it doesn't on the next page when you navigate.mikee

2 Answers

0
votes

does it only work on the page you put

ios:Page.PrefersHomeIndicatorAutoHidden="true"

If yes, you have to put it in the header of the next page too. In Fact you have to put it on all the pages you want the home indicator hidden. The next page does not know preferences from previous page - as long as you dont use templates.

0
votes

When you set PrefersHomeIndicatorAutoHidden property,it doesn't mean that HomeIndicator is completely hidden,it just keeps it from showing all the time.Each time the screen is touched, the Home Indicator pops up again and disappears after about two or three seconds of touching.