dasdom / SlideControl

Horizontal slide control build with Swift 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SlideControl

Vertical slide control build with Swift 2.0

How to use

Add DHSlideControl.swift to your project. Use it in your project like this:

let titles = ["1st Option", "2nd Option", "3rd Option", "4th Option"]
  
let slideControl = DHSlideControl(titles: titles)
slideControl.translatesAutoresizingMaskIntoConstraints = false
slideControl.addTarget(self, action: "didChange:", forControlEvents: .ValueChanged)
slideControl.color = UIColor(hue: 0.6, saturation: 0.9, brightness: 0.65, alpha: 1.0)
slideControl.layer.cornerRadius = 10

Licence

This code is released unter MIT licence. See licence file for details.

About

Horizontal slide control build with Swift 2.0

License:MIT License


Languages

Language:Swift 100.0%