mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
WIP synchronous reload data on collection view
This commit is contained in:
committed by
Levi McCallum
parent
a88ad0a848
commit
c33d6efa8a
@@ -280,6 +280,12 @@ static BOOL _isInterceptedSelector(SEL sel)
|
||||
[self reloadDataWithCompletion:nil];
|
||||
}
|
||||
|
||||
- (void)reloadDataAndWait
|
||||
{
|
||||
[_dataController reloadDataAndWait];
|
||||
[super reloadData];
|
||||
}
|
||||
|
||||
- (void)setDataSource:(id<UICollectionViewDataSource>)dataSource
|
||||
{
|
||||
// UIKit can internally generate a call to this method upon changing the asyncDataSource; only assert for non-nil.
|
||||
|
||||
Reference in New Issue
Block a user