Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 698 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 698 Bytes

LFSlider

UISlider extension with a label value and value change animation ezgif com-video-to-gif 1

Installation

Using the Swift file:

Drag the LFSlider.swift to your project

Using CocoaPods:

⚠️⚠️ Coming soon! ⚠️⚠️

Implementation

Creating a LFSlider

let mySlider = LFSlider(frame: CGRect(x: 100, y: 100, width: 400, height: 50))
view.addSubview(mySlider)

Changing value of a LFSlider with animation

mySlider.setValue(100, duration: 2)

Changing color of a LFSlider

mySlider.color = UIColor.redColor()