How to hide UITextField border? How to hide UITextField border? xcode xcode

How to hide UITextField border?


If you want to remove the textfield border you can do it directly with interface builder:enter image description here


Just use this..

textOption.borderStyle = UITextBorderStyleNone;[textOption setBackgroundColor:[UIColor clearColor]];


Swift 4 and 5 :

yourTextfield.borderStyle = .none