Input label - iOS
On iOS, there is no attribute to link a label to an input field. We recommend combining UILabel
with a UITextField
or UITextView
.
Set the accessibilityLabel
of the field to the text of the label.
label.text = "Name"
field.accessibilityLabel = label.text