Swiftpack.co -  Package - tonnylitao/A11y
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
tonnylitao/A11y
a swift package for accessibility
.package(url: "https://github.com/tonnylitao/A11y.git", from: "0.0.5")

A11y

http://github.com/tonnylitao/A11y

A swift package to simplify accessibility programming

set accessibility identifiers for views with Mirror

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 
    }
}

set accessibility identifier for view

import A11y

nameLbl.setA11yIdentifier("user_name")

GitHub

link
Stars: 0
Last commit: 1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco