xName 0.3.0

xName 0.3.0

Maintained by MuhsinFatih.



xName 0.3.0

xName

CI Status Version License Platform

Usage

    var views: [String: UIView] = [:]
    override func viewDidLoad() {
        ...
        views = self.view.viewsWithId() // load subviews with accessibility id

        let myButton = views["myButton"] as? UIButton // fun!
        myButton?.tintColor = .green
    }

create a UIButton and set its accessibility identifier (under identity inspector) to "myButton"

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

none

Installation

xName is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'xName'

Author

Muhsin Fatih Yorulmaz, [email protected]

License

xName is available under the MIT license. See the LICENSE file for more info.