Skip to content
This repository was archived by the owner on Dec 18, 2017. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions AKPickerView/AKPickerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,13 @@ public class AKPickerView: UIView, UICollectionViewDataSource, UICollectionViewD

/// Readwrite. A float value which indicates the spacing between cells.
@IBInspectable public var interitemSpacing: CGFloat = 0.0

// Readwrite. A boolean that decides whether the component should bounce or not. True by default.
public var bounces = true {
didSet {
self.collectionView.bounces = self.bounces
}
}

/// Readwrite. The style of the picker view. See AKPickerViewStyle.
public var pickerViewStyle = AKPickerViewStyle.Wheel
Expand Down Expand Up @@ -589,6 +596,10 @@ public class AKPickerView: UIView, UICollectionViewDataSource, UICollectionViewD
self.didEndScrolling()
}
}

public func scrollViewWillBeginDragging(scrollView: UIScrollView) {
self.delegate?.scrollViewWillBeginDragging?(scrollView)
}

public func scrollViewDidScroll(scrollView: UIScrollView) {
self.delegate?.scrollViewDidScroll?(scrollView)
Expand Down