Added truncation line enabled property by ivanbruel · Pull Request #704 · TTTAttributedLabel/TTTAttributedLabel · GitHub
Skip to content

Added truncation line enabled property#704

Open
ivanbruel wants to merge 3 commits into
TTTAttributedLabel:masterfrom
ivanbruel:master
Open

Added truncation line enabled property#704
ivanbruel wants to merge 3 commits into
TTTAttributedLabel:masterfrom
ivanbruel:master

Conversation

@ivanbruel

Copy link
Copy Markdown

I needed a way to provide the behavior as seen below:

simulator screen shot 04 aug 2016 11 32 23

In order to accomplish this, aside from setting the attributedTruncationToken to a custom token Read All, I added a property to TTTAttributedLabel to be able to set a truncation token to occupy the whole last line. The parameter added is truncationLineEnabled.

@codecov-io

codecov-io commented Aug 4, 2016

Copy link
Copy Markdown

@ivanbruel

Copy link
Copy Markdown
Author

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

Successfully merging this pull request may close these issues.

2 participants