I have to make bottomline view colorful when i am trying to update my textfield. After leaving that box color of line should take default color.I tried this but not works for all fields.I have set delegate of textfield also.
func textFieldDidBeginEditing(_ textField: UITextField) {
self.titleLine.backgroundColor = #colorLiteral(red: 1, green: 0.386627968, blue: 0.209040308, alpha: 1)
}