devxoul / UITextView-Placeholder

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

Add backgroundColor into observingKeys and set placeholderTextView ba… #56

Closed imhanhan closed 2 years ago

imhanhan commented 5 years ago

Add backgroundColor into observingKeys so the KVO will observe it and set self.placeholderTextView.backgroundColor = self.backgroundColor in - (void)updatePlaceholderTextView so the background color of placeholderTextView can be the same as the super TextView.

devxoul commented 5 years ago

Isn't it enough to set placeholderTextView's background color to .clear?