apploft / ExpandableLabel

A simple UILabel subclass that shows a tappable link if the content doesn't fit the specified number of lines
MIT License
463 stars 126 forks source link

Allow reading expandedText attribute #60

Closed simba909 closed 6 years ago

simba909 commented 6 years ago

Just recently found this library, and it does precisely what we need in one of our projects at work. Good stuff!

However, we need to be able to measure the height of the expanded text, so it would be useful to us if the expandedText attribute was open for reading. I've changed the implementation to allow that, and thought this might be useful for someone else 🙂

Any feedback on this is greatly appreciated! Thank you in advance 👍

michaelkamphausen commented 6 years ago

Thanks for your feedback and your contribution! 👍 It will be in the next version.