Latest 0.7.0
Homepage https://github.com/yashthaker7/NumberPicker
License MIT
Platforms ios 11.0
Authors

Version
License
Platform

A more interactive way to display and select number.

NumberPickerNumberPicker

Installation

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

pod 'NumberPicker'

How to use

Call this function in action.

func openNumberPicker() {
    let numberPicker = NumberPicker(delegate: self, maxNumber: 300) // set max number 
    numberPicker.bgGradients = [.red, .yellow]
    numberPicker.tintColor = .white
    numberPicker.heading = "Weight"
    numberPicker.defaultSelectedNumber = 150 // set default selected number

    self.present(numberPicker, animated: true, completion: nil)
}

Customize

You can change gradient color and tint color and title

    numberPicker.bgGradients = [.red, .yellow]
    numberPicker.tintColor = .white
    numberPicker.heading = "Weight"

Delegate

extension ViewController: NumberPickerDelegate {

    func selectedNumber(_ number: Int) {
        print(number)
    }
}

Author

Yash Thaker, [email protected]

License

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

Latest podspec

{
    "name": "NumberPicker",
    "version": "0.7.0",
    "summary": "A more interactive way to display and select number.",
    "homepage": "https://github.com/yashthaker7/NumberPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yash Thaker": "[email protected]"
    },
    "source": {
        "git": "https://github.com/yashthaker7/NumberPicker.git",
        "tag": "0.7.0"
    },
    "social_media_url": "https://twitter.com/yashthaker7",
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "NumberPicker/Classes/**/*",
    "resource_bundles": {
        "NumberPicker": "NumberPicker/Assets/*.xcassets"
    }
}

Pin It on Pinterest

Share This