Add 'isScrollEnabled' to FSPagerView.

This commit is contained in:
WenchaoD 2018-10-02 07:36:00 +08:00
parent a50ca2dadf
commit b5fc6ccbfc
1 changed files with 7 additions and 0 deletions

View File

@ -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 {