Bug 58374 - Can't independently set iOS NavigationBar's text, tint, and status bar style.
Summary: Can't independently set iOS NavigationBar's text, tint, and status bar style.
Status: RESOLVED DUPLICATE of bug 58373
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.3.5
Hardware: Macintosh Mac OS
: --- major
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-25 15:33 UTC by Christopher Boyd
Modified: 2017-07-25 15:55 UTC (History)
1 user (show)

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

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:
Status:
RESOLVED DUPLICATE of bug 58373

Description Christopher Boyd 2017-07-25 15:33:35 UTC
# Steps to reproduce
Attempt to follow iOS-specific solutions by manually setting everything in AppDelegate's FinishedLaunching() as described on http://motzcod.es/post/110755300272/ios-tip-change-status-bar-icon-text-colors

I'd like to set NavigationBar's text color to white and the tint color to orange, so that buttons are a different color than the text.
This seems like standard behavior on both Android and iOS, so I don't know why it's difficult with Xamarin.Forms.

If I set the `BarTextColor = Color.White` for the NavigationPage, then they all get set to white (along with the status bar text).

# Expected behavior
Should be able to change status bar style with
```
            UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent;
```

# Actual behavior
This doesn't work because it gets overridden with the default NavigationRenderer:
https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.iOS/Renderers/NavigationRenderer.cs#L609

There's no way to disable the override, since setting StatusBarTextColorMode.DoNotAdjust will result in the "Default" style with black text.

# Supplemental info (logs, images, videos)


# Test environment (full version information)
Comment 1 Christopher Boyd 2017-07-25 15:55:06 UTC

*** This bug has been marked as a duplicate of bug 58373 ***