-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Placeholder Text Colour #14
Comments
If you use the configuration system to get direct access to the underlying |
I wasn’t aware you could get access to the underlying textfield, I will give that a try. Thanks for getting back to me. |
Thanks that worked! |
I don't want to reopen this issue but wanted to ask a clarifying question. When I do something like this, the placeholder string is blank. $0.attributedPlaceholder = NSAttributedString(
string: "Placeholder",
attributes: [NSAttributedString.Key.foregroundColor: UIColor.gray]
) Is the right use of this library to set the placeholder text and use the |
@mergesort I would expect setting the attributed placeholder to work, I'm not sure why it wouldn't. 😕 |
Sorry, just dug in a little bit more and realized that this is likely because |
Ah, in that case it might need a change to make the |
Duly noted, will try to sneak that in for ya! |
Hmm, I thought marking placeholder as optional would do the trick since |
Hmm, according to the docs it might not actually be possible to change the placeholder colour anyway:
|
I'll put this into a pull request but I've gone ahead and added a new It may not be exactly the approach you're looking for so I'm happy to make changes for more general purposes, but it seemed like a good idea if the main purpose is to update the placeholder text, and in line with the APIs you've exposed. |
Hi Luke. Thanks for a great library. Was wondering if it is possible to change the colour of the placeholder text?
The text was updated successfully, but these errors were encountered: