Bug 34112 - Properties missing from UINavigationBarAppearance
Summary: Properties missing from UINavigationBarAppearance
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: XI 9.0 (iOS9)
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
: 39918 ()
Depends on:
Blocks:
 
Reported: 2015-09-21 09:33 UTC by Stephen Feest
Modified: 2016-04-05 14:37 UTC (History)
5 users (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 FIXED

Description Stephen Feest 2015-09-21 09:33:42 UTC
The following properties are missing from the UINavigationBarAppearance class compared with those documented at https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UINavigationBar_Class/index.html#//apple_ref/doc/uid/TP40006887-CH3-SW16

- BarStyle
- Translucent

The only workaround I'm aware of at the moment is setting the corresponding properties on each navigation bar through the storyboard editor (where possible) or in individual view controllers for things like the 'More' view in the tab view controller.
Comment 1 Sebastien Pouliot 2015-09-23 08:22:52 UTC
> @property(nonatomic,assign) UIBarStyle barStyle;

`barStyle` is not decorated with an UI_APPEARANCE_SELECTOR so it should not be used for appearance and this contradict your link to Apple documentation. I will file a rdar with Apple for this.


> @property(nonatomic,assign,getter=isTranslucent) BOOL translucent NS_AVAILABLE_IOS(3_0) UI_APPEARANCE_SELECTOR; // Default is NO on iOS 6 and earlier. Always YES if barStyle is set to UIBarStyleBlackTranslucent

`translucent` is decorated but it's missing in XI.
Comment 2 Sebastien Pouliot 2015-09-23 08:58:20 UTC
`barStyle` filed with Apple as rdar://22818366
Comment 3 Sebastien Pouliot 2015-09-24 22:07:49 UTC
maccore/master bb67bd709d81d9e135018560025b9074a04d5334 has the fix for `translucent`
Comment 4 Sebastien Pouliot 2016-04-05 14:28:18 UTC
*** Bug 39918 has been marked as a duplicate of this bug. ***
Comment 5 Sebastien Pouliot 2016-04-05 14:37:56 UTC
Closing, `translucent` is in C7 (XI 9.8) and we have a link back [1] to this bug whenever Apple answers us about `barStyle`.


[1] https://trello.com/c/QdyT8TqD/24-22818366-uinavigationbar-barstyle-is-not-decorated-with-ui-appearance-selector