CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

ZMSwiftRangeSlider 0.1.9

ZMSwiftRangeSlider 0.1.9

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2020
SPMSupports SPM

Maintained by TomHuang.



  • By
  • Tom.Huang

ZMSwiftRangeSlider

A simple Range Slider library by Swift.

Screenshot

ZMSwiftRangeSlider Screenshot

Setup

Install with CocoaPods

platform :ios, '8.0'
pod 'ZMSwiftRangeSlider', '~> 0.1.9'

Example

Configuration

  • trackHeight
  • trackTintColor
  • trackHighlightTintColor
  • minValueThumbTintColor
  • maxValueThumbTintColor
  • thumbSize
  • thumbOutlineSize
  • displayTextFontSize
  • labelsAreBelow

API

  • func setRangeValues(_ rangeValues: [Int])
  • func setMinAndMaxValue(_ minValue: Int, maxValue: Int)
  • func setMinAndMaxRange(_ minRange: Int, maxRange: Int)
  • func setValueChangedCallback(_ callback: ValueChangedCallback?)
  • func setMinValueDisplayTextGetter(_ getter: MinValueDisplayTextGetter?)
  • func setMaxValueDisplayTextGetter(_ getter: MaxValueDisplayTextGetter?)

License

MIT