Giter Site home page Giter Site logo

hitendradeveloper / hscenterslider Goto Github PK

View Code? Open in Web Editor NEW
34.0 5.0 6.0 1.5 MB

Instagram Filters Slider. Easy to use double side center slider, that can show value in (A,B) Range.

Home Page: https://medium.com/@hitendrahckr

License: MIT License

Swift 90.94% Ruby 9.06%
ios slider uislider center-slider double-ended-slider range mapping range-map swift4 swift5

hscenterslider's Introduction

HSCenterSlider

License Platform

Demo

HSCenterSlider

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. To install it, simply add the following line to your Podfile:

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)
  slider.rangeValue = HSRange(low: -200, high: 100)
  • Get value changes call back during user interaction using delegate method declared in the protocol HSCenterSliderDelegate
  func centerSlider(slider: HSCenterSlider, didChange value: Double)
  • Change the tint color of prograss view like a native UISlider
  slider.tintColor = UIColor.black
Possible Error:

[!] Unable to find a specification for 'HSCenterSlider'

Solution:
pod setup

Author

Hitendra Solanki, [email protected]

Find my repositories on Github

Read my blogs on Medium

Connect me via LinkedIn

Follow me on Twitter

License

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

hscenterslider's People

Contributors

hitendradeveloper avatar hitendraspaceo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.