MoZhouqi / KMPlaceholderTextView

A UITextView subclass that adds support for multiline placeholder written in Swift.
MIT License
805 stars 141 forks source link

Resizing based off placeholderLabel #37

Open acfriedman opened 7 years ago

acfriedman commented 7 years ago

Would it be possible to add auto layout constraints to adjust the size of the text view based off the size of the placeholder label height. Right now, the placeholder label will go off the view otherwise.

nessup commented 7 years ago

+1, tried to do the same thing. My fix for now is to constrain the height of the text view to the height of the placeholder label, plus textContainerInset.top + textContainerInset.bottom. Closest thing I could figure out to getting the job done.