ZSWTappableLabel
ZSWTappableLabel copied to clipboard
Number of lines is ignored
Doesn't support number of lines as the UILabel
Can you share an example of this not working?
you can set the number of lines, but the label renders as with numberOfLines = 0
This class does not do any drawing, so if there's an issue with constraining the sizing it's likely how you are configuring it. Does the issue still reproduce if you replace ZSWTappableLabel with UILabel?
I think that this is related to the fact that adjustsFontSizeToFitWidth
doesn't work either.
Oh, it works if you set lineBreakMode
to NSLineBreakByTruncatingTail
, but then the tap detection breaks. So this library doesn't allow you to have a label with both autoshrinking text and tappable links.
This simple implementation works perfectly.