All Projects → yashthaker7 → TYHeightPicker

yashthaker7 / TYHeightPicker

Licence: other
It's custom height picker for your health app. you can you this where picking up height or number from user.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to TYHeightPicker

Brpickerview
BRPickerView 封装的是iOS中常用的选择器组件,主要包括:日期选择器(支持年月日、年月等15种日期样式选择,支持设置星期、至今等)、地址选择器(支持省市区、省市、省三种地区选择)、自定义字符串选择器(支持单列、多列、二级联动、三级联动选择)。支持自定义主题样式,适配深色模式,支持将选择器组件添加到指定容器视图。
Stars: ✭ 2,149 (+6412.12%)
Mutual labels:  picker, uipickerview
NumberPicker
Custom number picker
Stars: ✭ 94 (+184.85%)
Mutual labels:  uipickerview, custompicker
SPPickerView
这是一个选择器,功能类似系统的UIPickerView,但是比UIPickerView的适用范围广得多
Stars: ✭ 28 (-15.15%)
Mutual labels:  picker, uipickerview
TVOSPicker
A sweet horizontal picker view controller for tvOS.
Stars: ✭ 26 (-21.21%)
Mutual labels:  picker
Transfiguration
Mystical way to transform data into reusable view in Swift
Stars: ✭ 14 (-57.58%)
Mutual labels:  uipickerview
HiGoogleFonts
HiGoogleFonts allows you to add a Google font picker to easily display a list of Google fonts. The picker shows an instant preview of the font style without loading the font css.
Stars: ✭ 44 (+33.33%)
Mutual labels:  picker
WatchKitTimePicker
⏱ A Time Picker data source for WatchKit that mirrors the behavior of UIDatePicker.
Stars: ✭ 37 (+12.12%)
Mutual labels:  picker
Active-Directory-Object-Picker
The standard Active Directory object picker dialog for .NET
Stars: ✭ 74 (+124.24%)
Mutual labels:  picker
ColorPick.js
A simple and minimal jQuery color picker plugin for the modern web.
Stars: ✭ 48 (+45.45%)
Mutual labels:  picker
react-native-value-picker
Cross-Platform iOS(ish) style picker for react native.
Stars: ✭ 18 (-45.45%)
Mutual labels:  picker
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (+157.58%)
Mutual labels:  picker
Great-Cow-BASIC-Demonstration-Sources
Demonstration files for Great Cow BASIC - a compiler for Microchip and AVR 8-bit microcontrollers
Stars: ✭ 18 (-45.45%)
Mutual labels:  picker
a-color-picker
A color picker for web app
Stars: ✭ 97 (+193.94%)
Mutual labels:  picker
ScrollHmsPicker
A simple scrollable HMS time picker view for Android.
Stars: ✭ 30 (-9.09%)
Mutual labels:  picker
android-folder-picker-library
A light-weight (just 27 KB) android library to let users choose folder / files.
Stars: ✭ 64 (+93.94%)
Mutual labels:  picker
slack widgets
An abstraction of the JSON structure needed to create widgets in Slack message attachments
Stars: ✭ 14 (-57.58%)
Mutual labels:  picker
filesystem picker
FileSystem file or folder picker dialog.
Stars: ✭ 44 (+33.33%)
Mutual labels:  picker
SettingsAppInSwiftUI
I have recreated a Settings App in iPhoneXR using SwiftUI concepts such as Form,Section,Toggle,Picker,Stack..etc
Stars: ✭ 37 (+12.12%)
Mutual labels:  picker
android-pickpic
Ready to use library that allows people to select pictures from their device and Facebook account.
Stars: ✭ 12 (-63.64%)
Mutual labels:  picker
vanilla-place-picker
Simple(vanilla) yet 'Do it all' place picker for your place picking needs in Android
Stars: ✭ 113 (+242.42%)
Mutual labels:  picker

TYHeightPicker

It's custom height picker for your health app. you can use this where picking up height from user, Or you can use as a custom picker too.

gif

How to use

Import YTHeightPicker.swift into your project.

   class ViewController: UIViewController {
       
    var heighPicker: TYHeightPicker!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupTYHeightPicker()
    }
    
    func setupTYHeightPicker() {
        heighPicker = TYHeightPicker()
        heighPicker.translatesAutoresizingMaskIntoConstraints = false
        heighPicker.delegate = self
        self.view.addSubview(heighPicker)
        
        heighPicker.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
        heighPicker.rightAnchor.constraint(equalTo: self.view.rightAnchor).isActive = true
        heighPicker.centerYAnchor.constraint(equalTo: self.view.centerYAnchor).isActive = true
        heighPicker.heightAnchor.constraint(equalToConstant: 145).isActive = true
    }
    
}

Delegate Method

    func selectedHeight(height: CGFloat, unit: HeightUnit) {
        print(height, unit)
    }

Set default selected height

    heighPicker.setDefaultHeight(67, unit: .Inch)

gif

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].