PUGradientSlider
PUGradientSlider Custom UISlider with gradient color background.
Animation types
Types
- Dashed
- Infinity
- Ripley
- Quarbit
Installation
Cocoapods
Cocoapods is a dependency manager for Swift and Objective-C Cocoa projects. To use PUGradientSlider with CocoaPods, add it in your Podfile
.
pod 'PUGradientSlider'
To specify with version:
pod 'PUGradientSlider', :git => 'https://github.com/PayalUmraliya/PUGradientSlider.git', :branch => '1.0.1'
Usage
First you need to import PUGradientSlider
at the view controller file where you are going to use.
import PUGradientSlider
Create outlet for the UISlider
@IBOutlet weak var Heatslider: UISlider!
Add below line to customise the slider
PUGradientSlider().setSlider(slider: Heatslider)
License
The MIT License (MIT)
Copyright (c) 2021 TheKarma
Author
Payal Umraliya