Reduce viewWillAppear by ~5% by optimizing loadForTextDisplay
// FREEBIE
This commit is contained in:
parent
1cad81ee4b
commit
aa0a31c25e
@ -525,7 +525,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
shouldIgnoreEvents:(BOOL)shouldIgnoreEvents
|
||||
{
|
||||
textView.hidden = NO;
|
||||
textView.text = text;
|
||||
textView.textColor = textColor;
|
||||
|
||||
// Honor dynamic type in the message bodies.
|
||||
@ -535,6 +534,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
NSUnderlineStyleAttributeName : @(NSUnderlineStyleSingle | NSUnderlinePatternSolid)
|
||||
};
|
||||
textView.shouldIgnoreEvents = shouldIgnoreEvents;
|
||||
|
||||
// For perf, set text last. Otherwise changing font/color is more expensive.
|
||||
textView.text = text;
|
||||
}
|
||||
|
||||
- (BOOL)hasTapForMore
|
||||
|
||||
Loading…
Reference in New Issue
Block a user