mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-11 17:00:02 +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 = [[ASTextNode alloc] init];
|
||||||
_nameNode.attributedString = [[NSAttributedString alloc] initWithString:_post.name
|
_nameNode.attributedString = [[NSAttributedString alloc] initWithString:_post.name
|
||||||
attributes:[TextStyles nameStyle]];
|
attributes:[TextStyles nameStyle]];
|
||||||
_nameNode.maximumLineCount = 1;
|
_nameNode.maximumNumberOfLines = 1;
|
||||||
[self addSubnode:_nameNode];
|
[self addSubnode:_nameNode];
|
||||||
|
|
||||||
// username node
|
// username node
|
||||||
@ -40,7 +40,7 @@
|
|||||||
attributes:[TextStyles usernameStyle]];
|
attributes:[TextStyles usernameStyle]];
|
||||||
_usernameNode.flexShrink = YES; //if name and username don't fit to cell width, allow username shrink
|
_usernameNode.flexShrink = YES; //if name and username don't fit to cell width, allow username shrink
|
||||||
_usernameNode.truncationMode = NSLineBreakByTruncatingTail;
|
_usernameNode.truncationMode = NSLineBreakByTruncatingTail;
|
||||||
_usernameNode.maximumLineCount = 1;
|
_usernameNode.maximumNumberOfLines = 1;
|
||||||
|
|
||||||
[self addSubnode:_usernameNode];
|
[self addSubnode:_usernameNode];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user