Skyscanner / SkyFloatingLabelTextField

A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift.
Apache License 2.0
4.09k stars 542 forks source link

Reset colors to defaults in storyboard #247

Open RowanG1 opened 5 years ago

RowanG1 commented 5 years ago

I have a number of fields, and previously set colors for various parameters. Now I want to revert to default colors, and I need to go through each Skyfloat box, and set 5 or so colors. I would like to do this in code, instead, to save time. Is there a default color option, or a reset option?

k0nserv commented 5 years ago

Hey @RowanG1, no there currently isn't anything like that, but you could create an instance and take the colors from there

let defaultField = SkyFloatingLabelTextField(frame: CGRect.zero)
// defaultField.titleColor