I work in a Swift project where I have several input fields. I made an individual presentation for each of the input fields, because we use them a lot in the project.
I added IQKeyboardManagerto the project. It works very well and the view rises according to the active text field.
However, the Next / Previous buttons are not displayed. I tried to set the text field tags in the code as follows:
slNameField.setTextField("Name", keyboardType: UIKeyboardType.NamePhonePad, image: UIImage(named: "ic_name"))
slNameField.txtField.tag = 101
slEmailField.setTextField("Email", keyboardType: UIKeyboardType.EmailAddress, image: UIImage(named: "ic_email"))
slEmailField.txtField.tag = 102
slLocationField.setTextField("City, Country", keyboardType: nil, image: UIImage(named: "ic_location"))
slLocationField.txtField.tag = 103
Here are some project illustrations:

source
share