http://github.com/tonnylitao/A11y
A swift package to simplify accessibility programming
import A11y
class ViewController: UIViewController {
@IBOutlet weak nameField: UITextField!
@IBOutlet weak emailField: UITextField!
func viewDidLoad() {
super.viewDidLoad()
generateA11yIdentifiers()
//nameField's identifier is string of nameField
//emailField's identifier is string of emailField
}
}
import A11y
nameLbl.setA11yIdentifier("user_name")