How should QuartzCore.framework imported in Swift?

János picture János · Oct 11, 2014 · Viewed 8.4k times · Source

I need QuartzCore.framework to add borderColor to a textfield, how?

Answer

mustafa picture mustafa · Oct 11, 2014

If you imported UIKit you don't need to import QuartzCore. Here is code

let textField = UITextField()
textField.layer.borderColor = UIColor.redColor().CGColor