All Projects → yashthaker7 → NumberPicker

yashthaker7 / NumberPicker

Licence: MIT license
Custom number picker

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to NumberPicker

TYHeightPicker
It's custom height picker for your health app. you can you this where picking up height or number from user.
Stars: ✭ 33 (-64.89%)
Mutual labels:  uipickerview, custompicker
Brpickerview
BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
Stars: ✭ 2,149 (+2186.17%)
Mutual labels:  uipickerview
Closures
Swifty closures for UIKit and Foundation
Stars: ✭ 1,720 (+1729.79%)
Mutual labels:  uipickerview
MXPickerView
MXPickerView is an encapsulation for UIPickerView and UIDatePicker
Stars: ✭ 23 (-75.53%)
Mutual labels:  uipickerview
Transfiguration
Mystical way to transform data into reusable view in Swift
Stars: ✭ 14 (-85.11%)
Mutual labels:  uipickerview
SPPickerView
这是一个选择器,功能类似系统的UIPickerView,但是比UIPickerView的适用范围广得多
Stars: ✭ 28 (-70.21%)
Mutual labels:  uipickerview
PickerButton
PickerButton is subclass of UIButton that presents UIPickerView in UIKeyboard.
Stars: ✭ 41 (-56.38%)
Mutual labels:  uipickerview
AUPickerCell
Embedded picker view for table cells.
Stars: ✭ 19 (-79.79%)
Mutual labels:  uipickerview
MJMediaPicker
A Custom Class to select media from camera ,video or photo library by just adding a single file
Stars: ✭ 15 (-84.04%)
Mutual labels:  custompicker

NumberPicker

Version License Platform

A more interactive way to display and select number.

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].