google / google/google-toolbox-for-mac
Support attributedText in GTMFadeTruncatingLabel
Open
- Dominant language
- Objective-C
- Stars
- 1.2k
- Forks
- 278
- Avg merge
- 6h 55m
- Merged PRs (30d)
- 4
Description
GTMFadeTruncatingLabel extends UILabel but only uses the text property. Styling in the attributedText property is ignored.
However, support for attributedText can be easily added. I don't have a full patch yet, but I've been hacking on some code (see https://gist.github.com/justindonnelly/6b41261bf8ca0110b0a3e9edd72fb475) and can confirm that this works in both iOS 9 and iOS 10. Can someone advise on whether this approach makes sense?
Contributor guide
Assessment
This issue has not been assessed yet.