Demo entry 5028226

swift

   

Submitted by anonymous on May 31, 2016 at 10:00
Language: Swift. Code size: 289 Bytes.

import UIKit
import XCPlayground

var str = "Hello, playground"

print("\(str)")

let frame = CGRect(x: 0, y: 0, width: 150, height: 150)

let customView = UIView(frame: frame)
customView.backgroundColor = UIColor.blueColor()

XCPlaygroundPage.currentPage.liveView = customView

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).