I don't know why, but this line
UITextField.appearance().tintColor = Colors.orange
looking your code its difficult to find out. But you can try another approach add
navigation item using attribute inspector inside your
viewcontroller and then add
barbuttonitem on right and add
button inside it and then change the color whatever you required.