From b5fc6ccbfca16b52153b18b9dd5aa5ce8791cee1 Mon Sep 17 00:00:00 2001 From: WenchaoD Date: Tue, 2 Oct 2018 07:36:00 +0800 Subject: [PATCH] Add 'isScrollEnabled' to FSPagerView. --- Sources/FSPagerView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 13e7f20..831b948 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -133,6 +133,13 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega @IBInspectable open var decelerationDistance: UInt = 1 + /// A Boolean value that determines whether scrolling is enabled. + @IBInspectable + open var isScrollEnabled: Bool { + set { self.collectionView.isScrollEnabled = newValue } + get { return self.collectionView.isScrollEnabled } + } + /// A Boolean value that controls whether the pager view bounces past the edge of content and back again. @IBInspectable open var bounces: Bool {