XCPlaygroundPage does not render views at retina resolution

Originator:d
Number:rdar://23647977 Date Originated:23-Nov-2015 02:19 PM
Status:Open (duplicate of rdar://23146632) Resolved:
Product:Xcode Product Version:7.1.1 (7B1005)
Classification:UI/Usability Reproducible:Always
 
Summary:
In a playground, views rendered through `XCPlaygroundPage` aren't displayed in proper resolution on retina displays, but in a non-retina resolution, making it hard to clearly see what the final result is.

This is especially visible in text elements such as UILabel's or UITextView's.

Steps to Reproduce:
1. Create a playground.
2. Write:

import UIKit
import XCPlayground

let label = UILabel()
label.textColor = .whiteColor()
label.text = "Example text"
label.sizeToFit()

XCPlaygroundPage.currentPage.needsIndefiniteExecution = true
XCPlaygroundPage.currentPage.liveView = label

3. Open the assistant editor if not opened already.

Expected Results:
The label is clearly displayed in proper retina resolution.

Actual Results:
The label is displayed in poor, non-retina resolution.

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!