Playground displays wrong color for UIColor.black and UIColor.white

Originator:ornithocoder
Number:rdar://27733754 Date Originated:06-Aug-2016
Status:Closed Resolved:22-Sep-2016
Product:Developer Tools Product Version:
Classification: Reproducible:Always
 
Playground doesn't display UIColor black and UIColor white as black and white.

On the right panel, the information doesn't match the black and white color (r: 0.0, g: 0.0, b: 0.0, a: 1.0) and (r: 1.0, g: 1.0, b: 1.0, a: 1.0)

The inline preview also shows the wrong information (doesn't render the color correctly).

Steps to Reproduce:

1. Install Xcode 8 Beta 4
2. Create a new iOS Playground
3. Type:

let blackColor = UIColor.black
let whiteColor = UIColor.white

4. Use either the inline preview or the right panel to preview the color

Expected Results:

It should render black as black and white as white.

Actual Results:

* It shows the wrong color information for black and white.
* It shows the wrong (rendered) preview for black and white colors.

Version:

Xcode 8 Beta 4, OS 10.11.6 (OS X El Capitan)

Comments

Apple fixed this issue on Xcode 8.1.

By ornithocoder at Feb. 21, 2017, 10:33 a.m. (reply...)

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!