ledragon
ledragon

Reputation: 301

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.

Upvotes: 0

Views: 249

Answers (2)

ledragon
ledragon

Reputation: 301

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"

Upvotes: 0

Haukinger
Haukinger

Reputation: 10863

Navigate to ViewDaily only, otherwise you add another navigation page...

await NavigationService.NavigateAsync("ViewDaily");

Upvotes: 0

Related Questions