Remove the internal storage of property 'alwaysBouncingHorizontal' and 'alwaysBouncingVertical'.

This commit is contained in:
WenchaoD 2018-09-14 15:16:21 +08:00
parent fd70d6b91e
commit 7fab78be1b
1 changed files with 14 additions and 4 deletions

View File

@ -137,15 +137,25 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
/// A Boolean value that determines whether bouncing always occurs when horizontal scrolling reaches the end of the content view.
@IBInspectable
open var alwaysBounceHorizontal: Bool = false {
didSet {
self.collectionView.alwaysBounceHorizontal = self.alwaysBounceHorizontal;
open var alwaysBounceHorizontal: Bool {
set {
self.collectionView.alwaysBounceHorizontal = newValue
}
get {
return self.collectionView.alwaysBounceHorizontal
}
}
/// A Boolean value that determines whether bouncing always occurs when vertical scrolling reaches the end of the content view.
@IBInspectable
open var alwaysBounceVertical: Bool = false {
open var alwaysBounceVertical: Bool {
set {
self.collectionView.alwaysBounceVertical = newValue
}
get {
return self.collectionView.alwaysBounceVertical
}
}
didSet {
self.collectionView.alwaysBounceVertical = self.alwaysBounceVertical;
}