How should I import QuartzCore.framework into Swift?

I need QuartzCore.framework to add borderColor to the text box, how?

+6
source share
1 answer

If you imported UIKit, you do not need to import QuartzCore. Here is the code

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

Source: https://habr.com/ru/post/976622/


All Articles