Description
Which version of the WSTagsField are you using?
E.g. 5.4.0
On which platform does the issue happen?
E.g. iOS 14.4
Are you using Carthage?
No
Are you using Cocoapods?
No
I installed via SPM
Which version of Xcode are you using?
Version 12.4 (12D4e)
What did you do?
Set a rather long placeholder.
tagField.placeholder = "Tags make it easier to get back in the future. You can add multiple tags separated by space"
What did you expect to happen?
TagsField to increase in height and show the full placeholder in multiple lines
What happened instead?
The placeholder was truncated at tail as shown in the image below.
I tried to dig in, fix it myself and send a PR. But sadly, there are a lot of things which I can't figure out. I got to enumerateItemRects
function and I saw that Constants.STANDARD_ROW_HEIGHT
was used in calculating the height. Other than that, I can't figure out much of what is happening there. I am not sure how to change that function and make it also work based the length of the placeholder.
Even if you can't find time to fix it, kindly point me to a reference on how to fix this, I'll do what I can and send a PR.
Thanks for the awesome component!
Activity