Latest 1.1.1
Homepage https://github.com/warchimede/RangeSlider
License MIT
Platforms ios 8.0, requires ARC
Authors

RangeSlider

CI Status
License
Platform
Version
Carthage compatible

Summary

A simple range slider made in Swift.

Screenshot

Use

This control is IBDesignable and uses the target-action pattern for change notifications.

In order to be notified when either thumb value changes, register for .ValueChanged:

let rangeSlider = RangeSlider(frame: frame)
view.addSubView(rangeSlider)
rangeSlider.addTarget(self, action: #selector(viewController.rangeSliderValueChanged(_:)),
                         for: .valueChanged)

Configuration

The range slider can be customized and information can be accessed through these properties :

  • minimumValue : The minimum possible value of the range
  • maximumValue : The maximum possible value of the range
  • lowerValue : The value corresponding to the left thumb current position
  • upperValue : The value corresponding to the right thumb current position
  • trackTintColor : The track color
  • trackHighlightTintColor : The color of the section of the track located between the two thumbs
  • thumbTintColor: The thumb color
  • thumbBorderColor: The thumb border color
  • thumbBorderWidth: The width of the thumb border
  • curvaceousness : From 0.0 for square thumbs to 1.0 for circle thumbs

Installation

RangeSlider is available through CocoaPods.
To install it, simply add the following line to your Podfile :

pod "WARangeSlider"

Author

William Archimede

License

RangeSlider is available under the MIT License

If you use it and like it, let me know: @warchimede

Latest podspec

{
    "name": "WARangeSlider",
    "version": "1.1.1",
    "summary": "A simple range slider made in Swift",
    "description": "This pod provides a simple range slider.",
    "homepage": "https://github.com/warchimede/RangeSlider",
    "license": "MIT",
    "authors": {
        "William Archimede": "[email protected]"
    },
    "source": {
        "git": "https://github.com/warchimede/RangeSlider.git",
        "tag": "1.1.1"
    },
    "social_media_url": "https://twitter.com/warchimede",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "RangeSlider/RangeSlider.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This