Using UIAppearance proxy breaks simulator
| Originator: | amcknight2718 | ||
| Number: | rdar://28271368 | Date Originated: | 9/12/16 |
| Status: | Open | Resolved: | |
| Product: | Xcode and iOS Simulator | Product Version: | |
| Classification: | Reproducible: | Always |
When I set background color to white for UIView via its UIAppearance proxy, the simulator screen goes blank when pressing ⌘
Steps to reproduce:
1. Create new single view project
2. Place some UI elements in the storyboard
3. Add the following to the app delegate's appFinishedLaunching method:
UIView.appearance().backgroundColor = UIColor.whiteColor()
4. Add any UIView subclass to the main view controller (works in XIBs, storyboards or pure code)
5. Build and run in simulator
6. Press ⌘
Expected results:
Nothing should happen
Actual results:
The interface element visible in the simulator disappears, the screen goes white
Xcode 7.3.1 and Xcode 8 GM
macOS 10.11.6 (15G31)
Test project available at https://dl.dropboxusercontent.com/u/37865108/uiappearance-bug.zip
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!