warchimede / RangeSlider

A simple range slider made in Swift
MIT License
366 stars 78 forks source link

How to use in a storyboard #2

Closed blkbam closed 8 years ago

blkbam commented 8 years ago

How can I get this to show up in a storyboard? I attempted to mark the RangeSlider class as IBDesignable and assign it to a UIView however at runtime the control doesn't render.

ghost commented 8 years ago

@blkbam did you get this working? I would also like to use it on storyboard but have not been able to do so. I guess something needs to be implemented in here:

required init?(coder: NSCoder) {
    super.init(coder: coder)
}

to actually set it up and make it render. Implementing the same code in the frame initializer allows the view to render but it overflows the screen and i can't seem to figure out why

blkbam commented 8 years ago

@digitalturtle I abandoned it for https://github.com/TomThorpe/TTRangeSlider

warchimede commented 8 years ago

@blkbam @digitalturtle Hi guys, Thanks for having given RangeSlider a try. I just made it IBDesignable, so it shows up in storyboards and is rendered properly at runtime.