O iOS Playground não mostra a visualização da interface do usuário
Criei um playground simples com o XCode 7.1 e digitei este código simples:
import UIKit
import XCPlayground
var str = "Hello, playground"
let color = UIColor (red: 1 , green: 1 , blue: 0 , alpha: 0 )
let view = UIView()
view.backgroundColor = UIColo (colorLiteralRed: 1 , green: 0 , blue: 0 , alpha: 0 )
view.frame = CGRect (x: 0 ,y: 0 ,width: 100 ,height: 100 )
let label = UILabel (frame: CGRect (x: 5 , y: 5 , width: 50 , height: 20 ))
label.text = str
view.addSubview(label)
Quando o playground é executado, ele não mostra a visualização do objeto UIKit, mas apenas as informações de depuração:
O que estou fazendo errado?