I currently have a regular border. I would like to only have a top and bottom border.
How do I accomplish this?
Using the UITextField<
UITextField<
Updated for Swift 5
var bottomBorder = CALayer() bottomBorder.frame = CGRect(x: xVal, y: yVal, width: w, height: h) bottomBorder.backgroundColor = UIColor.black.cgColor searchBar.layer.addSublayer(bottomBorder)