How should QuartzCore.framework imported in Swift?
Asked Answered
T

1

10

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

Temptation answered 11/10, 2014 at 19:41 Comment(2)
import QuartzCore should do the trick...Officer
@Officer Indeed it does. Thanks :)Colincolinson
C
13

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

let textField = UITextField()
textField.layer.borderColor = UIColor.redColor().CGColor
Cavalcade answered 11/10, 2014 at 20:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.