DCWheelPickerView
is a number picker that can pick number from 0 to 99. It supported dragging and tapping, you can interact the outer wheel or inner wheel with gesture.
directly add DCWheelPickerView folder to your project
let wheelPicker = DCWheelPickerView(frame: containerView.bounds)
containerView.addSubview(wheelPicker)
wheelPicker.didSelectIndexCompletion = { (index) in
print("DidSelectIndex: \(index)")
}
wheelPicker.didTapCenterCompletion = {
print("DidTapCenter")
}
This code is distributed under the terms and conditions of the MIT license.