LoginSignup
1

More than 1 year has passed since last update.

Textfieldの枠線の色を変える

Posted at

環境

  • Swift 5.3.2
  • Xcode 12.4

これだけじゃ変わらなかった

textField.layer.borderColor = UIColor.lightGray.cgColor

これも一緒に書く

textField.layer.borderWidth = 1.0

備忘録でした。

参考

stack overflow

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1