I tried to create a UILabel in playground but failed. Does playground only support OS X development for now?
UILabel
In Xcode 8 XCPlaygroundPage.currentPage.liveView is deprecated. Instead, use
XCPlaygroundPage.currentPage.liveView
import PlaygroundSupport PlaygroundPage.current.liveView = view