mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Clarify default value behavior of the layoutDelegate for flow layouts
This commit is contained in:
@@ -21,11 +21,12 @@
|
||||
|
||||
- (instancetype)initWithCollectionView:(ASCollectionView *)collectionView flowLayout:(UICollectionViewFlowLayout *)flowLayout
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
if (flowLayout == nil) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
self = [super init];
|
||||
|
||||
if (self != nil) {
|
||||
self.collectionView = collectionView;
|
||||
_layout = flowLayout;
|
||||
|
||||
Reference in New Issue
Block a user