MoZhouqi / KMPlaceholderTextView

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

Has ambiguous scrollable content height #16

Closed paulz closed 8 years ago

paulz commented 8 years ago

Thank you for useful pod!

We have an issue using it in a storyboard. When adding a height constraint to the it Storyboard shows the warning: Has ambiguous scrollable content height.

Is there a workaround for that? Or way to fix it?

After investigation and StackOverflow research we think it's because IBDesignable KMPlaceholderTextView has placeholder subview, which UITextView UIScrollView probably takes as content and cause ambiguity.

paulz commented 8 years ago

Here is an example of the issue:

https://github.com/MoZhouqi/KMPlaceholderTextView/compare/master...paulz:master

in my fork: https://github.com/paulz/KMPlaceholderTextView

MoZhouqi commented 8 years ago

Fixed in d670bb34adb98f6f4e328c5e29ed8eafd84838f6. Thanks for the feedback!