Skip to content

Commit

Permalink
Add 'isScrollEnabled' to FSPagerView.
Browse files Browse the repository at this point in the history
  • Loading branch information
WenchaoD committed Oct 1, 2018
1 parent a50ca2d commit b5fc6cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Sources/FSPagerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b5fc6cc

Please sign in to comment.