Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How should QuartzCore.framework imported in Swift?

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

like image 694
János Avatar asked Oct 11 '14 19:10

János


People also ask

What is QuartzCore in Swift?

599. An Objective-C framework used by macOS and iOS to produce animated user interfaces. Also known as Core Animation.


1 Answers

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

let textField = UITextField()
textField.layer.borderColor = UIColor.redColor().CGColor
like image 171
mustafa Avatar answered Oct 20 '22 18:10

mustafa