Skip to content

ios-robert/ZMSwiftRangeSlider

 
 

Repository files navigation

ZMSwiftRangeSlider

A simple Range Slider library by Swift.

Screenshot

ZMSwiftRangeSlider Screenshot

Setup

Install with CocoaPods

platform :ios, '12.0'
pod 'ZMSwiftRangeSlider', '~> 5.0.0'

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

About

A simple Range Slider library by Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.1%
  • Ruby 3.9%