From b8d929dae2684aa1dbf8ffe89e8c96aa784204ad Mon Sep 17 00:00:00 2001 From: Norman Sun <814349837@qq.com> Date: Tue, 16 Mar 2021 16:06:10 +0800 Subject: [PATCH] Add pager view allowsSelection --- Sources/FSPagerView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 7fb17d9..6a316a7 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -93,6 +93,13 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega } } + /// A Boolean value indicates that whether the pager view allowsSelection + @objc + open var allowsSelection: Bool { + set { self.collectionView.allowsSelection = newValue } + get { return self.collectionView.allowsSelection } + } + /// The time interval of automatic sliding. 0 means disabling automatic sliding. Default is 0. @IBInspectable open var automaticSlidingInterval: CGFloat = 0.0 {