mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Move modifier to __weak for the highlighted layer in ASTextNode (#1756)
This commit is contained in:
committed by
appleguy
parent
c857e809f4
commit
efab1a4855
@@ -619,7 +619,7 @@ static NSArray *DefaultLinkAttributeNames = @[ NSLinkAttributeName ];
|
||||
|
||||
if (_activeHighlightLayer) {
|
||||
if (animated) {
|
||||
__unsafe_unretained CALayer *weakHighlightLayer = _activeHighlightLayer;
|
||||
__weak CALayer *weakHighlightLayer = _activeHighlightLayer;
|
||||
_activeHighlightLayer = nil;
|
||||
|
||||
weakHighlightLayer.opacity = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user