Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support attributedText in GTMFadeTruncatingLabel #133

Open
justindonnelly opened this issue Feb 16, 2017 · 1 comment
Open

Support attributedText in GTMFadeTruncatingLabel #133

justindonnelly opened this issue Feb 16, 2017 · 1 comment

Comments

@justindonnelly
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@justindonnelly and others