Search code examples
xamarinxamarin.formsnavigationuinavigationbarprism

Xamarin Forms & Prism on iOS Navigation Bar is double height


I've encountered an issue with the navigation bar height in the iOS version of my Xamarin Forms Prism app whereby it appears to be double height.

It displays correctly on Android.

I navigate to the page in the normal Prism way (ViewDaily is a Detail of the MasterDetailPage MainPage):

await NavigationService.NavigateAsync("/MainPage/NavigationPage/ViewDaily");

But the same also happens if I navigate to as a normal Navigation Page. This isn't my use case as I need the MasterDetail Page but i tried as a test:

await NavigationService.NavigateAsync("/NavigationPage/ViewDaily");

Any help gratefully received.


Solution

  • Thanks to Dan Siegel for the answer:

    https://github.com/PrismLibrary/Prism/issues/2511

    Add the following to the Detail (Content) Page:

    ios:Page.LargeTitleDisplay="Never"