By default UITextField has a light gray color as its border color. I want to set my UITextView to have the same border color as the UITextField.
I tried:
<
If your textField is like:
myTextField.layer.cornerRadius = 10
myTextField.layer.borderWidth = 1
myTextField..layer.borderColor = UIColor.systemGray4.cgColor
then your UITextView will look exactly the same with:
myTextView.layer.cornerRadius = 10
myTextView.layer.borderWidth = 1.0
myTextView.layer.borderColor = UIColor.systemGray4.cgColor
The exact color is:
Objective-C:
[UIColor colorWithRed:0.76 green:0.76 blue:0.76 alpha:1.0].CGColor;
Swift:
UIColor(red:0.76, green:0.76, blue:0.76, alpha:1.0).CGColor