Latest 0.2.0
Homepage https://github.com/HiroteruWatanabe/EnlargedThumbSlider
License MIT
Platforms ios 10.0
Authors

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

EnlargedThumbSlider

Highlighted

EnlargedThumbSlider

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.

Latest podspec

{
    "name": "EnlargedThumbSlider",
    "version": "0.2.0",
    "summary": "EnlargedThumbSlider is a custom slider. Its thumb is enlarged or shrinked with animation.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/HiroteruWatanabe/EnlargedThumbSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "HiroteruWatanabe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/HiroteruWatanabe/EnlargedThumbSlider.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "EnlargedThumbSlider/Classes/**/*"
}

Pin It on Pinterest

Share This