Don't set UICollectionView properties in IGListCollectionView

Summary:
Fixes #277
Closes https://github.com/Instagram/IGListKit/pull/285

Differential Revision: D4284679

Pulled By: rnystrom

fbshipit-source-id: 6fae3bc928e0065681ebfce906f9e518f819db89
This commit is contained in:
Dave Caunt 2016-12-06 06:29:55 -08:00 committed by Facebook Github Bot
parent 0395ca31e9
commit 394e6c827b

View file

@ -11,21 +11,10 @@
@implementation IGListCollectionView
- (void)commonInit {
self.backgroundColor = [UIColor whiteColor];
self.alwaysBounceVertical = YES;
}
- (instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout {
if (self = [super initWithFrame:frame collectionViewLayout:layout]) {
[self commonInit];
}
return self;
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder {
if (self = [super initWithCoder:aDecoder]) {
[self commonInit];
self.backgroundColor = [UIColor whiteColor];
self.alwaysBounceVertical = YES;
}
return self;
}