SwiftlySlider 0.7.1

SwiftlySlider 0.7.1

LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2018
SPMSupports SPM

Maintained by Maxim Bilan.

  • By
  • Maxim Bilan


Version License Platform CocoaPods CocoaPods

A simple iOS slider control.

alt tag



pod 'SwiftlySlider'


Just copy the SwiftlySlider.swift into your project.


You can create from Storyboard or XIB. Or create manually:

let slider = SwiftlySlider()

For handling changing of values you should implement protocol SwiftlySliderDelegate:

slider.delegate = self

func swiftlySliderValueChanged(value: Int) {


picker.direction = SwiftlySlider.PickerDirection.Horizontal // Vertical, Horizontal

Also you can change current value, maximum value or minimum value, for example:

picker.currentValue = 0
picker.maxValue     = 30
picker.minValue     = 1

Slider settings:

sliderImage       // Custom image of the slider
sliderImageOffset // Offset of custom slider position
sliderSize        // Size of custom slider position


slider.sliderImage = UIImage(named: "CustomSlider")
slider.sliderImageOffset = CGPoint(x: 0, y: -1)
slider.sliderSize = CGSize(width: 30, height: 15)

Normal indicator:

useNormalIndicator  // Use normal indicator
normalValue         // Normal value

Color settings:

labelFontColor        // Font color of the moving label
labelBackgroundColor  // Background color of the moving label
labelFont             // Font of the moving label
bgColor               // Background color

You can easily found example in this repository.


SwiftlySlider is available under the MIT license. See the LICENSE file for more info.