Skip to content

Support attributedText in GTMFadeTruncatingLabel #133

Description

@justindonnelly

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions