Answers for "how to underline blank text in textfield ios swift"

0

how to add an underline to a textField swift

var bottomLine = CALayer()
bottomLine.frame = CGRectMake(0.0, 75 - 1, 300, 1.0)
bottomLine.backgroundColor = UIColor.whiteColor().CGColor
myTextField.borderStyle = UITextBorderStyle.None
myTextField.layer.addSublayer(bottomLine)
Posted by: Guest on April-05-2020

Code answers related to "how to underline blank text in textfield ios swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language