Skip to content
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

you can't specify placeholder color in property attributedPlaceholder. #23

Closed
jimmychen2014 opened this issue Jan 24, 2020 · 0 comments
Closed
Labels

Comments

@jimmychen2014
Copy link

jimmychen2014 commented Jan 24, 2020

as private method placeholderAttributes not respecting placeholder color in property attributedPlaceholder.

if you use RSKPlaceholderTextView like this:

textView.attributedPlaceholder = NSAttributedString(string: "placeholder", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red])
textView.font = UIFont.systemFont(ofSize: 16)

the placeholder color will be placeholderColor default value instead of red.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants