Latest 2.0.0
Homepage https://github.com/HamzaGhazouani/HGCircularSlider
License MIT
Platforms ios 8.0
Authors

Twitter: @GhazouaniHamza
CI Status
Version
License
[Language]()
Platform
Carthage compatible

codebeat badge
Documentation
Readme Score

Example

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

Requirements

  • iOS 9.0+
  • Xcode 8.0

Installation

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

# Swift 3.1 - Xcode 8.3
pod 'HGCircularSlider', '~> 2.0.0'

# Swift 3 - Xcode 8
pod 'HGCircularSlider', '~> 1.0.3'

# Swift 2.2 - Xcode 7.3.1 (Checkout Swift2_Xcode7.3 branche)
pod 'HGCircularSlider', '~> 0.1.2'

HGCircularSlider is also available through Carthage. To install
it, simply add the following line to your Cartfile:

# Swift 3.1 - Xcode 8
github "HamzaGhazouani/HGCircularSlider"

Usage

  1. Change the class of a view from UIView to CircularSlider, RangeCircularSlider or MidPointCircularSlider
  2. Programmatically:
let circularSlider = CircularSlider(frame: myFrame)
circularSlider.minimumValue = 0.0
circularSlider.maximumValue = 1.0
circularSlider.endPointValue = 0.2

OR

let circularSlider = RangeCircularSlider(frame: myFrame)
circularSlider.startThumbImage = UIImage(named: "Bedtime")
circularSlider.endThumbImage = UIImage(named: "Wake")

let dayInSeconds = 24 * 60 * 60
circularSlider.maximumValue = CGFloat(dayInSeconds)

circularSlider.startPointValue = 1 * 60 * 60
circularSlider.endPointValue = 8 * 60 * 60
circularSlider.numberOfRounds = 2 // Two rotations for full 24h range

OR

let circularSlider = MidPointCircularSlider(frame: myFrame)
circularSlider.minimumValue = 0.0
circularSlider.maximumValue = 10.0
circularSlider.distance = 1.0
circularSlider.midPointValue = 5.0

Documentation

Full documentation is available on CocoaDocs.
You can also install documentation locally using jazzy.

References

The UI examples of the demo project inspired from Dribbble.

Player
BasicExample
OClock

The project is Inspired by UICircularSlider

Author

Hamza Ghazouani, [email protected]

License

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

Latest podspec

{
    "name": "HGCircularSlider",
    "version": "2.0.0",
    "summary": "Multiple Circular Sliders used to select a value from a continuous range of values.",
    "description": "Circular Sliders used to select a value from a continuous range of values.nnCircularSlider: simple circular slidernRangeCircularSlider: slider with two points to select a range of values from a continuous range of valuesnMidPointCircularSlider: slider with fixed range to select a range of values from a continuois range of values",
    "homepage": "https://github.com/HamzaGhazouani/HGCircularSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Hamza Ghazouani": "[email protected]"
    },
    "source": {
        "git": "https://github.com/HamzaGhazouani/HGCircularSlider.git",
        "tag": "2.0.0"
    },
    "social_media_url": "https://twitter.com/GhazouaniHamza",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "HGCircularSlider/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This