SwiftRangeSlider 2.0.0

SwiftRangeSlider 2.0.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2017
SwiftSwift Version 4.0
SPMSupports SPM

Maintained by Brian Corbin.



  • By
  • Brian Corbin

SwiftRangeSlider

This is a swift implementation of custom UIControl that allows users to select a range of values on a slider bar with 2 knobs.

Requirements

  • iOS 8.0+
  • Xcode 8+

Usage

import SwiftRangeSlider

With Storyboards

To use SwiftRangeSlider on a storyboard, add a UIView to your view controller and set its class to RangeSlider. The Range Slider defaults to an iOS-esque style of slider, but it can be modified to look lots of different ways! There is even scaling on touch and labels, so be sure to experiment until you find exactly what you like!

SRS With Storyboards 1 SRS With Storyboards 2

Most of the customization parameters can be changed through IBDesignable and IBInspectable and should be reflected on the storyboard!

SRS With Storyboards 3

To reference the RangeSlider on your storyboard in your view controller’s file, create an @IBOutlet connection of type RangeSlider:

@IBOutlet weak var rangeSlider: RangeSlider!

Programmatically

let rangeSlider:RangeSlider = RangeSlider()