Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.05 KB

PickerTextFieldReadme.md

File metadata and controls

32 lines (19 loc) · 1.05 KB

Picker Text Field Readme

A Text Field With Capabilities of Displaying and Picker with a Done button

you first create a PickerTextFieldModel like

let model = PickerTextFieldModel(titles: ["Red","Blue","Green"])

then you initialize it like

textField.initializePicker(model: dataSource)
textField.pickerDelegate = self.view as? PickerTextFieldDelegate

and conform to the delegate thats it !!

You can set your arrow image in the @IBInspector as shown below:-

alttext

you can set the left offset , placeholder color as well as the placeholder font size

NOTE :- THIS IS A SUBCLASS OF FORM TEXT FIELD PLS ADD THAT TOO IT IS IN THIS REPO

Have a look at the other screenshots:-

alttext

alttext