devxoul / UITextView-Placeholder

A missing placeholder for UITextView
MIT License
1.48k stars 259 forks source link

Fixed ‘textView.font’ and ‘self.placeholderLabel.font’ fonts with dif… #40

Open WynterW opened 7 years ago

WynterW commented 7 years ago

The initial value of 'textView.text' is not empty. Then edit 'textView.text' to empty, the code for setting the font cannot be executed when updating the placeholders. This results in inconsistencies between 'textView.font' and 'self.placeholderLabel.font'.

devxoul commented 7 years ago

Can you write tests for this?

popwarfour commented 6 years ago

Whoops, didn't see (or test) this PR first. I just submitted what appears to be a duplicate. https://github.com/devxoul/UITextView-Placeholder/pull/44