Skip to content

Bug Fixes and More Customisation

Compare
Choose a tag to compare
@TomThorpe TomThorpe released this 25 May 19:34
· 59 commits to master since this release

New

  • Added new hideLabels property to hide the labels on the slider. Previously the suggestion was to set the formatter override to [NSNull null]. This was bad. Especially for Swift. Now you should set hideLabels to true instead. The old method will work for now too though. (thanks Aaron Connolly!)
  • Added custom handle image or custom handle colour - handleColor and handleImage properties (thanks fiantinangon and ClaudioTSM!)
  • Added custom line colour for the slider line - sliderColorBetweenHandles (thanks fiantinangon and ClaudioTSM!)
  • Added custom line height for the slider line - lineHeight (thanks ClaudioTSM!)
  • Added custom handle diameter for the size of the slider handles - handleDiameter (thanks ClaudioTSM!)
  • Added property to control how much the handle zooms by when it is selected by the user - electedHandleDiameterMultiplier (thanks ClaudioTSM!)
  • Added new delegate method didEndTouchesInRangeSlider (thanks andreyvit!)
  • Added new delegate method didStartTouchesInRangeSlider (thanks holgersindbaek!)
  • Made the delegate property an IBOutlet (thanks felipowsky!)
  • Added minLabelFont and maxLabelFont properties to change the fonts of the labels (thanks codiophile!)

Fixed Bugs

  • Do not try to prevent labels overlap when disableRange == YES - Without this fix, the maxLabel would not go all the way to the left due to the minLabel being accounted for even if hidden. (thanks JonathanTron!)
  • Fixed label spacing bug from #2 (thanks krychlinski for reporting and relevante for the fix!)
  • Fixes a problem where TTRangeSlider would not always inherit the tintColor of the parent view when using Interface Builder (see #25 for details - thanks guillaume-algis!). Related: tintColor is only respected if a custom handleColor has not been set (thanks felipowsky!)