apploft / ExpandableLabel

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

add Collapse support #4

Closed beiliubei closed 8 years ago

mkoehnke commented 8 years ago

Hi @beiliubei. Thanks for contributing! This is certainly a good addition. However, instead of having a label that is touchable, I would prefer a link (called “less”, analog to “more”) that triggers the collapsing. What do you think?

beiliubei commented 8 years ago

@mkoehnke think of long long text label, The user needs to slide to the bottom, it is not convenient for the users

mkoehnke commented 8 years ago

Yes, good point. Let’s keep it that way. Nevertheless, I’ll make the collapse behaviour optional with the default ‘disabled’. I will add some delegate methods to achieve that.