Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehatkathuria/SnappingSlider
A beautiful slider control for iOS built purely upon Swift
https://github.com/rehatkathuria/SnappingSlider
Last synced: 3 months ago
JSON representation
A beautiful slider control for iOS built purely upon Swift
- Host: GitHub
- URL: https://github.com/rehatkathuria/SnappingSlider
- Owner: rehatkathuria
- License: mit
- Archived: true
- Created: 2015-04-21T19:24:24.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T14:23:55.000Z (over 6 years ago)
- Last Synced: 2024-04-24T18:57:32.167Z (6 months ago)
- Language: Swift
- Size: 12.7 KB
- Stars: 576
- Watchers: 10
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - SnappingSlider - A beautiful slider control for iOS built purely upon Swift (UI / Slider)
- awesome-ios-star - SnappingSlider - A beautiful slider control for iOS built purely upon Swift (UI / Slider)
README
# SnappingSlider
A beautiful slider control for iOS.
## Installation
There are two ways to add the control to your project; you can add it as a submodule if you're using GIT as a versioning system or you can install it through CocoaPods. Examples of both are outlined below.`git submodule add https://github.com/rehatkathuria/SnappingSlider`
`pod "SnappingSlider"`
## Usage
It's simple, really. In essence, all you need to do is instantiate a slider with a title and conform to the delegate offered.```swift
let slider = SnappingSlider(frame: CGRectMake(0.0, 0.0, 10.0, 10.0), title: "Slide Me")
slider.delegate = selfmyAwesomeViewController.view.addSubView = slider
...
func snappingSliderDidIncrementValue(snapSwitch: SnappingSlider) {
}
func snappingSliderDidDecrementValue(snapSwitch: SnappingSlider) {
}
```## Author
This control has been open-sourced by [Rehat Kathuria](http://kthr.co). You can follow him on twitter, [here](http://twitter.com/rhtkth), and hire him for freelance projects, [here](mailto:[email protected]).
## License & Other Boring Stuff
Licensed under MIT. If you use the control somewhere, [do let me know](http://twitter.com/rehatkat). I'd love to see it out in the wild.