FahimF / FloatLabelFields

Text entry controls which contain a built-in title/label so that you don't have to add a separate title for each field.
MIT License
1.19k stars 107 forks source link

Make placeholderTextColor settable #24

Open jordanhbuiltbyhq opened 7 years ago

jordanhbuiltbyhq commented 7 years ago

I'd like to change the placeholderTextColor but it's a constant not an inspectable variable like titleTextColour. This is what I desire. :)

    @IBInspectable var placeholderTextColor:UIColor = UIColor.lightGray.withAlphaComponent(0.65) {
        didSet {
            if !isFirstResponder {
                hintLabel.textColor = placeholderTextColor
            }
        }
    }