Playground execution failed: error: Couldn't lookup symbols
Closed this issue · 0 comments
nickvelloff commented
Xcode Version 6.4 (6E35b)
Playground execution failed: error: Couldn't lookup symbols:
__TMaC7Palette7Palette
__TFC7Palette7PaletteCfMS0_FT10backgroundCSo6UIView7forViewS1__S0_
//: Playground - noun: a place where people can play
import UIKit
import XCPlayground
import SnapKit
import Palette
var canvas = UIView(frame: CGRect(x: 0, y: 0, width: 300, height: 300))
canvas.backgroundColor = UIColor.redColor()
var label = UILabel()
label.text = "That's right!"
label.sizeToFit()
canvas.addSubview(label)
label.snp_makeConstraints({ make in
make.centerX.equalTo(canvas)
make.centerY.equalTo(canvas)
})
let palette = Palette(background:canvas, forView:label)
label.textColor = palette.getContrastingColor()
XCPShowView("Canvas", canvas)