ios - How to customise UISlider height -
i have project in have customise uislider
element. wondering if knows how change, or possible change height of uislide
bar line.
i tried don't work:
let custombounds = cgrect(origin: bounds.origin, size: cgsize(width: bounds.size.width, height: 15.0)) feedbackslider.trackrectforbounds(custombounds)
thanks
i hope want edit in storyboard, , line size, use in custom uislider
class customslide: uislider { @ibinspectable var trackheight: cgfloat = 2 override func trackrectforbounds(bounds: cgrect) -> cgrect { //set bounds here return cgrect(origin: bounds.origin, size: cgsizemake(bounds.width, trackheight)) } }
Comments
Post a Comment