UIAppearance appearanceWhenContainedIn: Not Exposed to Swift

Originator:wetzeal
Number:rdar://19294719 Date Originated:
Status:Duplicate/17219120/Open Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
The UIAppearance method
+ (instancetype)appearanceWhenContainedIn:(Class<UIAppearanceContainer>)ContainerClass, ...

is not available to Swift code.

Steps to Reproduce:
1. Try to use UIAppearance appearanceWhenContainedIn:        UIBarButtonItem.appearanceWhenContainedIn(UIToolbar.self).tintColor = UIColor.whiteColor()
2. Compile

Expected Results:
The code compiles

Actual Results:
error: 'UIBarButtonItem.Type' does not have a member named 'appearanceWhenContainedIn'

Version:
Xcode 6.1.1/6A2006
OS X 10.10.1/14B25

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!