From f280708f52848a2ca44c4f0a6a765bd7efc25158 Mon Sep 17 00:00:00 2001 From: WenchaoD Date: Mon, 24 Sep 2018 12:22:39 +0800 Subject: [PATCH] =?UTF-8?q?Open=20=E2=80=98bounces=E2=80=99=20property.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/FSPagerView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift index 6f30431..539dd73 100644 --- a/Sources/FSPagerView.swift +++ b/Sources/FSPagerView.swift @@ -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 {