I have really great wish to set my own color to UITextField border. But so far I could find out how to change the border line style only.
I\'ve used background prope
Update for swift 5.0
textField.layer.masksToBounds = true textField.layer.borderColor = UIColor.blue.cgColor textField.layer.borderWidth = 1.0