Latest 1.1
Homepage https://github.com/sumitjagdev/SJMeterStyleSliderView
License MIT
Platforms ios 8.0
Authors

The SJMeterStyleSliderView control is a completely customisable widget that can be used in any iOS app. It also plays a little victory fanfare.

Prerequisites

  • XCode > 9.0
  • Swift > 4.0

Version
License
Platform

SJMeterStyleSliderView

Overview

The SJMeterStyleSliderView control is a completely customisable widget that can be used in any iOS app. It also plays a little victory fanfare.

Requirements

  • ARC
  • iOS8

Installation

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

pod "SJMeterStyleSliderView"

Usage

//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)
    }
}

Built With

  • Swift
  • UIKit

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the releases on this repository.

Author

License

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

Latest podspec

{
    "name": "SJMeterStyleSliderView",
    "version": "1.1",
    "summary": "Meter Style Slider Control for selecting current index on meter scale.",
    "description": "The SJMeterStyleSliderView control is a completely customisable widget that can be used in any iOS app. It also plays a little victory fanfare.",
    "homepage": "https://github.com/sumitjagdev/SJMeterStyleSliderView",
    "screenshots": [
        "https://raw.githubusercontent.com/sumitjagdev/SJMeterStyleSliderView/master/Screen1.png",
        "https://raw.githubusercontent.com/sumitjagdev/SJMeterStyleSliderView/master/Screen2.png"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "sumitjagdev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sumitjagdev/SJMeterStyleSliderView.git",
        "tag": "1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "SJMeterStyleSliderView/Classes/**/*"
}

Pin It on Pinterest

Share This