Skip to content

UISlider compatibility

Compare
Choose a tag to compare
@SwiftArchitect SwiftArchitect released this 07 Dec 08:39
· 71 commits to master since this release

2.0.0 Upgrade Notes

If you were using previous versions of TGPControls, you may need to address the following:

  • search and replace instances of thumbColor by thumbTintColor. It is the same property adopting UISlider naming convention.
  • tintColor now affects the right side of the slider (the opposite of what it used to be). Again, this is adopting UISlider behavior convention.
  • 2 new properties are available: minimumTrackTintColor and maximumTrackTintColor, also adopting UISlider behavior convention.

Cosmetic changes

  • The ComponentStyleIOS thumb responds to thumbTintColor. It has be reduced ever so slightly to match iOS 9 appearance.
  • The ComponentStyleIOS track matches the iOS track colors exactly.
  • The track can be drawn at any size and maintain its color, clipping and integrity, even when the thumb is invisible.
  • ticks color is controlled by tintColor, and is not overruled by minimumTrackTintColor.