From 394e6c827bf382723057de42e2296af595ce30e3 Mon Sep 17 00:00:00 2001 From: Dave Caunt Date: Tue, 6 Dec 2016 06:29:55 -0800 Subject: [PATCH] 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 --- Source/IGListCollectionView.m | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Source/IGListCollectionView.m b/Source/IGListCollectionView.m index be9f5a1b..6a0a3aa3 100644 --- a/Source/IGListCollectionView.m +++ b/Source/IGListCollectionView.m @@ -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; }