Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hitendradeveloper/hscenterslider
Instagram Filters Slider. Easy to use double side center slider, that can show value in (A,B) Range.
https://github.com/hitendradeveloper/hscenterslider
center-slider double-ended-slider hitendra hitendra-solanki hitendra-solanki-ios horizontal ios mapping mobile mobile-development mobileapp programming range range-map slider solanki swift4 swift5 uislider verticle
Last synced: about 2 months ago
JSON representation
Instagram Filters Slider. Easy to use double side center slider, that can show value in (A,B) Range.
- Host: GitHub
- URL: https://github.com/hitendradeveloper/hscenterslider
- Owner: hitendradeveloper
- License: mit
- Created: 2018-04-17T06:55:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T12:27:20.000Z (over 3 years ago)
- Last Synced: 2024-05-20T17:37:53.726Z (8 months ago)
- Topics: center-slider, double-ended-slider, hitendra, hitendra-solanki, hitendra-solanki-ios, horizontal, ios, mapping, mobile, mobile-development, mobileapp, programming, range, range-map, slider, solanki, swift4, swift5, uislider, verticle
- Language: Swift
- Homepage: https://medium.com/@hitendrahckr
- Size: 1.46 MB
- Stars: 34
- Watchers: 5
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# HSCenterSlider
[![License](https://img.shields.io/cocoapods/l/HSCenterSlider.svg?style=flat)](http://cocoapods.org/pods/HSCenterSlider)
[![Platform](https://img.shields.io/cocoapods/p/HSCenterSlider.svg?style=flat)](http://cocoapods.org/pods/HSCenterSlider)## Demo
![HSCenterSlider](https://github.com/hitendradeveloper/HSCenterSlider/blob/master/HSCenterSlider%20-%20Verticle%20Demo%202.gif)## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
| Swift | XCode | Tag/Pod version |
| --- | ------------- | ------ |
| 5.x | >= 10.x | 2.1.1 |
| 4.x | >= 9.x | 2.0.1 |
| 3.x | >= 8.x | 2.0.1 |## Installation
HSCenterSlider is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'HSCenterSlider'
```## How to use?
1. Drag the UIView and drop in to the storybaord or XIB
2. Give class HSHorizontalCenterSlider or HSVerticleCenterSlider to the view. That's it.
3. Your center slider is ready to use in just two steps
## More Usage
- Change slider range between any two values, Default range is (-100,100)
```Swift
slider.rangeValue = HSRange(low: -200, high: 100)
```- Get value changes call back during user interaction using delegate method declared in the protocol HSCenterSliderDelegate
```Swift
func centerSlider(slider: HSCenterSlider, didChange value: Double)
```- Change the tint color of prograss view like a native UISlider
```Swift
slider.tintColor = UIColor.black
```##### Possible Error:
`[!] Unable to find a specification for 'HSCenterSlider'`
##### Solution:```ruby
pod setup
```## Author
#### Hitendra Solanki, [[email protected]](mailto://[email protected])#### Find my repositories on [Github](https://github.com/hitendradeveloper)
#### Read my blogs on [Medium](https://medium.com/@hitendrahckr)
#### Connect me via [LinkedIn](http://in.linkedin.com/in/hitendradeveloper)
#### Follow me on [Twitter](https://twitter.com/hitendrahckr)## License
HSCenterSlider is available under the MIT license. See the LICENSE file for more info.