mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Remove CATransaction hack.
ASRangeController previously enqueued display of individual nodes by adding their views to the hierarchy, wrapping each `-addSubview:` call in an explicit CATransaction to force displays to occur in order. This hack is no longer necessary -- kill it.
This commit is contained in:
@@ -121,12 +121,7 @@
|
||||
ASDisplayNodeAssertMainThread();
|
||||
ASDisplayNodeAssert(node && view, @"invalid argument, did you mean -removeNodeFromWorkingRange:?");
|
||||
|
||||
// use an explicit transaction to force CoreAnimation to display nodes in the order they are added.
|
||||
[CATransaction begin];
|
||||
|
||||
[view addSubview:node.view];
|
||||
|
||||
[CATransaction commit];
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
Reference in New Issue
Block a user