mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-09 15:51:05 +00:00
Update social app to use new text node API
This commit is contained in:
parent
52b6c47d23
commit
af60009992
@ -31,7 +31,7 @@
|
||||
_nameNode = [[ASTextNode alloc] init];
|
||||
_nameNode.attributedString = [[NSAttributedString alloc] initWithString:_post.name
|
||||
attributes:[TextStyles nameStyle]];
|
||||
_nameNode.maximumLineCount = 1;
|
||||
_nameNode.maximumNumberOfLines = 1;
|
||||
[self addSubnode:_nameNode];
|
||||
|
||||
// username node
|
||||
@ -40,7 +40,7 @@
|
||||
attributes:[TextStyles usernameStyle]];
|
||||
_usernameNode.flexShrink = YES; //if name and username don't fit to cell width, allow username shrink
|
||||
_usernameNode.truncationMode = NSLineBreakByTruncatingTail;
|
||||
_usernameNode.maximumLineCount = 1;
|
||||
_usernameNode.maximumNumberOfLines = 1;
|
||||
|
||||
[self addSubnode:_usernameNode];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user