The SJMeterStyleSliderView control is a completely customisable widget that can be used in any iOS app. It also plays a little victory fanfare.
- XCode > 9.0
- Swift > 4.0
The SJMeterStyleSliderView control is a completely customisable widget that can be used in any iOS app. It also plays a little victory fanfare.
- ARC
- iOS8
SJMeterStyleSliderView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SJMeterStyleSliderView"
//TODO: To import Slider View for use
import SJMeterStyleSliderView
<!--Now you can create an UI in your storyboard and assign class of a view to SJMeterStyleSliderView to use this UI Control for Meter Slider.-->
<!---->
<!--You can also use delegate to get selected index and use moveSliderToIndex method to move slider programeticaly.-->
<!--Ex. Code--->
import SJMeterStyleSliderView
class ViewController: UIViewController, SJMeterStyleSliderViewDelegate {
@IBOutlet var sliderView : SJMeterStyleSliderView!
@IBOutlet var stepper : UIStepper!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
self.sliderView.delegate = self
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func valueChanged(_ sender: UIStepper) {
self.sliderView.moveSliderToIndex(index: Int(sender.value), withAnimation: true)
}
func didChangeSelectedIndex(index: Int) {
print("Selected Index : ", index)
stepper.value = Double(index)
}
}
- Swift
- UIKit
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the releases on this repository.
- Sumit Jagdev , sumitjagdev3@gmail.com
SJSwiftSideMenuController is available under the MIT license. See the LICENSE file for more info.