From 6b5bbd8db1e97210294d6b87151c640448f66ffe Mon Sep 17 00:00:00 2001 From: Yauheni Hindzin Date: Sat, 3 Oct 2020 00:04:30 +0300 Subject: [PATCH] Fix naming issue --- UPCarouselFlowLayoutDemo/ViewController.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UPCarouselFlowLayoutDemo/ViewController.swift b/UPCarouselFlowLayoutDemo/ViewController.swift index e88bfaa..4ee2531 100644 --- a/UPCarouselFlowLayoutDemo/ViewController.swift +++ b/UPCarouselFlowLayoutDemo/ViewController.swift @@ -25,6 +25,9 @@ class ViewController: UIViewController, UICollectionViewDelegate, UICollectionVi } fileprivate var pageSize: CGSize { + + + let layout = self.collectionView.collectionViewLayout as! UPCarouselFlowLayout var pageSize = layout.itemSize if layout.scrollDirection == .horizontal {