The PipeSlider is pipe like slider at horizontal and vertical direction.
For using swift version 4.0
- Add
pod 'PipeSlider', '~> 1.0.0'
to your podfile and runpod install
- Create a UIView and set it's class to PipeSlider at the storyboard or create from your code just like a UIView.
- Set
direction
from topDown, bottomUp, leftToRight, or rightToLeft
To install without Cocoapods, add the
PipeSlider
directory found inPipeSlider/PipeSlider/
then follow steps 2 and 3.
You can set a delegate and listen to value change event.
Delegate method | Description |
---|---|
func pipeView(_ sender: PipeSlider, didChanged value: Double) |
User moved the slider |
You can change Inset, pipeColor, textColor, and direction.
This project is made available with the MIT License.
If you have any issues or feature request for this project, please create an issue and/or send us a pull request.
We hope you enjoy the PipeSlider!#