Closed akaDuality closed 1 year ago
From this gist:
static UIAccessibilityTraits UIAccessibilityTraitTextEntry = 0x0000000000040000;
static UIAccessibilityTraits UIAccessibilityTraitIsEditing = 0x0000000000200000;
Which means in Swift it will be:
static let textFieldEntry = UIAccessibility(rawValue: 262144)
static let isEditingEntry = UIAccessibility(rawValue: 2097152)
Checked in sumulator example and it magically works!
Cool! UISwitch should be 53 number
UITextField and UITextView have some special hidden trait that expose them to accesiblitiy technologies. We should investigate how to repeat this behaviour.
Also, UISwitch have special toggle-button trait.
Hidden traits according to my another repository, bit mask: