mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Use fast enumeration when performing collection view update blocks
This commit is contained in:
@@ -792,9 +792,9 @@ static BOOL _isInterceptedSelector(SEL sel)
|
||||
|
||||
ASPerformBlockWithoutAnimation(!animated, ^{
|
||||
[super performBatchUpdates:^{
|
||||
[_batchUpdateBlocks enumerateObjectsUsingBlock:^(dispatch_block_t block, NSUInteger idx, BOOL *stop) {
|
||||
for (dispatch_block_t block in _batchUpdateBlocks) {
|
||||
block();
|
||||
}];
|
||||
}
|
||||
} completion:completion];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user