Open ‘bounces’ property.

This commit is contained in:
WenchaoD 2018-09-24 12:22:39 +08:00
parent 7167dacf0b
commit f280708f52
1 changed files with 7 additions and 0 deletions

View File

@ -145,6 +145,13 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
@IBInspectable
open var pagingDistance: UInt = 1
/// A Boolean value that controls whether the pager view bounces past the edge of content and back again.
@IBInspectable
open var bounces: Bool {
set { self.collectionView.bounces = newValue }
get { return self.collectionView.bounces }
}
/// A Boolean value that determines whether bouncing always occurs when horizontal scrolling reaches the end of the content view.
@IBInspectable
open var alwaysBounceHorizontal: Bool {