DoubleTextField - admiral-team/admiralui-ios GitHub Wiki
A complex element which contains two text fields.
public class DoubleTextField<T1, T2>: UIView, AnyAppThemable, AccessibilitySupport where T1: TextField, T2: TextField
Complex element contains two textfield which inheritance class TextField. Also you can set width relation between textfields.
For configuration text field need set two text field and property alignment, which means relation between them. Property alignment can be of three types. The first is set fixed width for first text field, the second type is set fixed width for second text field, The last is ratio between two text fields. If you set ratio 1, then width textfields will equal.
About configuration text field you can see here.
let firstTextField = TextField()
firstTextField.name = "Optional label"
firstTextField.text = "Text"
firstTextField.placeholder = "Placeholder"
firstTextField.info = "Additional text"
let secondTextField = TextField()
secondTextField.name = "Optional label"
secondTextField.text = "Text"
secondTextField.placeholder = "Placeholder"
secondTextField.info = "Additional text"
let textField = DoubleTextField(
firstTextField: firstTextField,
secondTextField: secondTextField,
alignment: .ratio(ration: 1))
You can help us to find bugs or ask us to add features.
- To start
issue
please use ready-made templates. - To make changes to the repository, you need to create a
fork
of the project, make changes to the code and create apull request
in our project. You can read more about this in the Github documentation.