import UIKit
import XCPlayground
let view = UIView(frame: CGRect(x: 0, y: 0, width: 320, height: 580))
view.backgroundColor = UIColor.whiteColor()
XCPShowView("preview", view: view)
let v = UIView(frame: CGRect(x: 0,y: 0,width: 44,height: 44))
v.backgroundColor = UIColor.redColor()
view.addSubview(v)
UIView.animateWithDuration(0.5) { () -> Void in
v.center = view.center
}
XCPlaygroundをインポートするとXCPShowViewで指定したUIViewのアニメーションを検証出来る