An open API service indexing awesome lists of open source software.

https://github.com/nanjingboy/zmswiftrangeslider

A simple Range Slider library by Swift.
https://github.com/nanjingboy/zmswiftrangeslider

range-slider-library swift

Last synced: 5 months ago
JSON representation

A simple Range Slider library by Swift.

Awesome Lists containing this project

README

        

# ZMSwiftRangeSlider
A simple Range Slider library by Swift.

# Screenshot

![ZMSwiftRangeSlider Screenshot](Screenshot.gif)

# Setup

#### Install with [CocoaPods](http://cocoapods.org/)

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

#### [Example](Example/Example/ViewController.swift)

# 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](LICENSE)