Swiftpack.co - tonnylitao/A11y as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tonnylitao.
tonnylitao/A11y 0.0.5
a swift package for accessibility
⭐️ 0
🕓 3 years ago
iOS
.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: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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