Skip to content

Commit

Permalink
Updated README with examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lfarah committed Mar 13, 2016
1 parent 04db3f0 commit de6d697
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# LFSlider
UISlider extension with a label value

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

## Changing value of a LFSlider with animation
``` swift
mySlider.setValue(100, duration: 2)
```

## Changing color of a LFSlider
``` swift
mySlider.color = UIColor.redColor()
```

0 comments on commit de6d697

Please sign in to comment.