EnlargedThumbSlider 0.2.7

EnlargedThumbSlider 0.2.7

Maintained by Hiroteru Watanabe.



  • By
  • HiroteruWatanabe

EnlargedThumbSlider

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Features

EnlargedThumbSlider imitates Apple's Music app Slider behavior. When slider is highlighted, the slider's thumb is enlarged and changes color with animation.

Normal state

Highlighted

Usage

func setupSlider() {
// The color is supposed to be the same color as slider's backgroundColor or superview color.
slider.thumbOuterColor = .white // Set the color of the thumb outer side. 

slider.setMinimumTrackTintColor(.darkGray, for: .normal) 
slider.setMinimumTrackTintColor(primaryColor, for: .highlighted)
slider.maximumTrackTintColor = .lightGray 
slider.setCircleThumb(color: .darkGray, for: .normal) 
slider.setCircleThumb(color: primaryColor, for: .highlighted)
}

Requirements

iOS 10.0 or later

Installation

EnlargedThumbSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EnlargedThumbSlider'

Author

HiroteruWatanabe, [email protected]

License

EnlargedThumbSlider is available under the MIT license. See the LICENSE file for more info.