From f00bbad517d4b94efd3876865caf858b36f4d6b7 Mon Sep 17 00:00:00 2001 From: Hiroshi Kimura Date: Fri, 28 Apr 2017 18:59:42 +0900 Subject: [PATCH] Update CHTCollectionViewWaterfallLayout.swift --- CHTCollectionViewWaterfallLayout.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHTCollectionViewWaterfallLayout.swift b/CHTCollectionViewWaterfallLayout.swift index cdea45b..622ae8a 100755 --- a/CHTCollectionViewWaterfallLayout.swift +++ b/CHTCollectionViewWaterfallLayout.swift @@ -166,14 +166,14 @@ public class CHTCollectionViewWaterfallLayout : UICollectionViewLayout{ /* * 1. Get section-specific metrics (minimumInteritemSpacing, sectionInset) */ - var minimumInteritemSpacing : CGFloat + let minimumInteritemSpacing : CGFloat if let miniumSpaceing = self.delegate?.collectionView?(self.collectionView!, layout: self, minimumInteritemSpacingForSectionAtIndex: section){ minimumInteritemSpacing = miniumSpaceing }else{ - minimumInteritemSpacing = self.minimumColumnSpacing + minimumInteritemSpacing = self.minimumInteritemSpacing } - var sectionInsets : UIEdgeInsets + let sectionInsets : UIEdgeInsets if let insets = self.delegate?.collectionView?(self.collectionView!, layout: self, insetForSectionAtIndex: section){ sectionInsets = insets }else{ @@ -188,7 +188,7 @@ public class CHTCollectionViewWaterfallLayout : UICollectionViewLayout{ /* * 2. Section header */ - var heightHeader : CGFloat + let heightHeader : CGFloat if let height = self.delegate?.collectionView?(self.collectionView!, layout: self, heightForHeaderInSection: section){ heightHeader = height }else{