thehung111 / NHRangeSlider

A custom range slider in Swift
https://thehung111.github.io/NHRangeSlider/
MIT License
156 stars 45 forks source link

Problem adding NHRangeSliderView via Storyboard #6

Closed rcmstark closed 7 years ago

rcmstark commented 7 years ago

Can you add an example in your demo app?

When I tried to add a UIView in storyboard an change it to be NHRangeSliderView class, it doesn't work. I'm only able to add it programmatically.

eyeezzi commented 7 years ago

@rcmcastro

  1. This is how you do it: drag a normal UIView into a view controller.
  2. Select the view you just dropped and go to the Identity Inspector. In the Custom Class section, change the Class and Module values to NHRangeSlider, and viola!. See attached image, hope this helps...it's the same approach for all these controls that claim Storyboard compatibility.

superscreenshot 2017-4-27 3-15-28