mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
use attributedString.length instead of attributedString.string.length to check for empty strings
This commit is contained in:
@@ -173,7 +173,7 @@ static const CGFloat ASTextNodeRendererTextCapHeightPadding = 1.3;
|
||||
{
|
||||
ASDN::MutexLocker l(_textKitLock);
|
||||
|
||||
if (_attributedString.string.length == 0) {
|
||||
if (_attributedString.length == 0) {
|
||||
_calculatedSize = CGSizeZero;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user