I've created a custom textField class that I'm using throughout my app, but I want to know how I can change the border color to red every-time a field is selected without having to implement a delegate on each view controller that the textField shows up on.
Is there a way to override a standard function when I'm creating my textField subclass? For buttons, I had success using the following code, but isHighlighted doesn't work for textFields and it doesn't look like I can override isEditing:
override var isHighlighted: Bool {
didSet {
backgroundColor = isHighlighted ? .red : .blue
}
}