alecgorge / NapySlider

A vertical slider UIControl element written in swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NapySlider

A vertical slider UIControl element written in swift

Build Status

demo

Howto

The easiest way to add a NapySlider is in the storyboard. Add a UIView element and set its custom Class to NapySlider. Now you can define the inspectable properties, like min, max, step and all the colors.

NapySlider Attribute Inspector

And don't forget to modify the tintColor

Add it programatically

Of course, you can add a slider by code.

var myNapySlider:NapySlider!

// add this lines to the viewDidLoad function, or wherever you like
myNapySlider = NapySlider(frame: yourFrame)
myNapySlider.min = 0
myNapySlider.max = 100
myNapySlider.step = 20

view.addSubview(myNapySlider)

About

A vertical slider UIControl element written in swift

License:MIT License


Languages

Language:Swift 96.2%Language:Ruby 3.8%