From 2861a4e706319a4bf2e83ffb546e4f7a6be557cd Mon Sep 17 00:00:00 2001 From: DWX Date: Wed, 26 Oct 2016 11:03:35 +0800 Subject: [PATCH] make the header && footer public change CHTCollectionElementKindSectionHeader && CHTCollectionElementKindSectionFooter to public so you can use in public func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView --- CHTCollectionViewWaterfallLayout.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHTCollectionViewWaterfallLayout.swift b/CHTCollectionViewWaterfallLayout.swift index 501140a..d5860ae 100755 --- a/CHTCollectionViewWaterfallLayout.swift +++ b/CHTCollectionViewWaterfallLayout.swift @@ -56,9 +56,9 @@ enum CHTCollectionViewWaterfallLayoutItemRenderDirection : NSInteger{ case chtCollectionViewWaterfallLayoutItemRenderDirectionRightToLeft } +public let CHTCollectionElementKindSectionHeader = "CHTCollectionElementKindSectionHeader" +public let CHTCollectionElementKindSectionFooter = "CHTCollectionElementKindSectionFooter" class CHTCollectionViewWaterfallLayout : UICollectionViewLayout{ - let CHTCollectionElementKindSectionHeader = "CHTCollectionElementKindSectionHeader" - let CHTCollectionElementKindSectionFooter = "CHTCollectionElementKindSectionFooter" var columnCount : NSInteger{ didSet{