https://github.com/muukii/viewfinder
Find the UI Component by accessibilityIdentifier from AppDelegate.window
https://github.com/muukii/viewfinder
Last synced: about 2 months ago
JSON representation
Find the UI Component by accessibilityIdentifier from AppDelegate.window
- Host: GitHub
- URL: https://github.com/muukii/viewfinder
- Owner: muukii
- License: mit
- Created: 2016-04-14T03:52:19.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T05:39:36.000Z (about 9 years ago)
- Last Synced: 2025-02-28T07:14:29.426Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ViewFinder
[](http://cocoapods.org/pods/ViewFinder)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/ViewFinder)
[](http://cocoapods.org/pods/ViewFinder)## Usage
Find the UI Component by accessibilityIdentifier from AppDelegate.window
- Set accessibilityIdentifier to the UI Component that you want to find.
```swift
let button = UIButton(type: .System)
button.accessibilityIdentifier = "likeButton"
addSubview(button)
```- Find the UI Component by accessibilityIdentifier.
```swift
let button = UIButton.findByAccessibilityIdentifier("likeButton")
```## Requirements
iOS 7.0+
## Installation
### CocoaPods[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
```bash
$ gem install cocoapods
```> CocoaPods 0.39.0+ is required to build ViewFinder
To integrate ViewFinder into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!pod 'ViewFinder'
```Then, run the following command:
```bash
$ pod install
```### Carthage
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
```bash
$ brew update
$ brew install carthage
```To integrate ViewFinder into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "muukii/ViewFinder"
```Run `carthage update` to build the framework and drag the built `ViewFinder.framework` into your Xcode project.
## Author
muukii, [email protected]
## License
ViewFinder is available under the MIT license. See the LICENSE file for more info.