Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Corbin committed Mar 1, 2017
1 parent 4105478 commit e400699
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,18 @@ import SwiftRangeSlider

To use SwiftRangeSlider on a storyboard, add a UIView to your view controller and set its class to RangeSlider.

![SRS With Storyboards 1](http://i.imgur.com/rFUeouz.png)
![SRS With Storyboards 1](http://imgur.com/C69FAOO.png)
![SRS With Storyboards 2](http://i.imgur.com/HSVrFKU.png)

Most of the customization parameters can be changed through IBDesignable and IBInspectable and should be reflected on the storyboard!

![SRS With Storyboards 3](http://i.imgur.com/DK9w4Ej.png)
![SRS With Storyboards 3](http://imgur.com/sog8OMz.png)

To reference the `RangeSlider` on your storyboard in your view controller's file, create an `@IBOutlet` connection of type `RangeSlider`:

```swift
@IBOutlet weak var rangeSlider: RangeSlider!
```
In order to initially reflect your layout settings via autolayout when the view controller loads, please call the `updateLayerFrames()` function inside of `viewDidLayoutSubviews()`:

```swift
override func viewDidLayoutSubviews() {
rangeSlider.updateLayerFrames()
}
```

### Programmatically

Expand Down

0 comments on commit e400699

Please sign in to comment.