mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Restore old ASCollectionNode init
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
- (instancetype)init
|
||||
{
|
||||
ASDISPLAYNODE_NOT_DESIGNATED_INITIALIZER();
|
||||
self = [self initWithCollectionViewLayout:[UICollectionViewFlowLayout new]];
|
||||
UICollectionViewLayout *nilLayout = nil;
|
||||
self = [self initWithCollectionViewLayout:nilLayout]; // Will throw an exception for lacking a UICV Layout.
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user