Skip to content

Junyi1227/InputPickerView

Repository files navigation

InputPickerView

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

In your custom model "showedStr" is reture your pickerView's showed string.

import InputPickerView

class CategoryModel: Codable,InputPickerData {
    func showedStr() -> String {
        return category
    }

    var category:String
    var categoryKey:String
}

use InputPickerView

lazy var pickerView = InputPickerView<CategoryModel>()

pickerView.setupData(dataSource) { (row, selectStr, selectModel) in

}
myField.inputView = pickerView

Installation

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

pod 'InputPickerView'

Author

Junyi1227, trance1227@gmail.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published