Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxsokolov/Cribble
Swifty tool for visual testing iPhone and iPad apps. Every pixel counts.
https://github.com/maxsokolov/Cribble
pixelperfect sieve testing ui ux
Last synced: 3 months ago
JSON representation
Swifty tool for visual testing iPhone and iPad apps. Every pixel counts.
- Host: GitHub
- URL: https://github.com/maxsokolov/Cribble
- Owner: maxsokolov
- License: mit
- Created: 2016-05-27T07:52:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-30T07:50:47.000Z (over 6 years ago)
- Last Synced: 2024-08-03T10:21:45.776Z (3 months ago)
- Topics: pixelperfect, sieve, testing, ui, ux
- Language: Swift
- Homepage:
- Size: 156 KB
- Stars: 266
- Watchers: 10
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - Cribble - Swifty tool for visual testing iPhone and iPad apps. (Testing / Other Testing)
- awesome-ios-star - Cribble - Swifty tool for visual testing iPhone and iPad apps. (Testing / Other Testing)
README
# Cribble
Cribble - a tool for visual testing iPhone and iPad apps. Every pixel counts.
![Cribble](https://d13yacurqjgara.cloudfront.net/users/108183/screenshots/2804436/gridsystem.png)
# Getting Started
An [example app](Demo) is included demonstrating Cribble's functionality.
## Usage
Simply add the following lines into your app delegate:
```swift
import Cribbleoverride func motionBegan(_ motion: UIEventSubtype, with event: UIEvent?) {
guard motion == .motionShake else { return }Cribble.shared.hidden = !Cribble.shared.hidden
}
```
Shake a device and explore ui's roughness.## Custom options
You may want to use your own parameters for the grid. In that case simply use `CribbleOptions`:
```swift
let options = CribbleOptions(horizontalStep: 10, verticalStep: 10, opacity: 0.7, color: UIColor.red)
Cribble.shared.options = options
```# Installation
## CocoaPods
To integrate Cribble into your Xcode project using CocoaPods, specify it in your `Podfile`:```ruby
pod 'Cribble'
```
## Carthage
Add the line `github "maxsokolov/cribble"` to your `Cartfile`.
## Manual
Clone the repo and drag files from `Sources` folder into your Xcode project.# Requirements
- iOS 8.0
- Xcode 8.0# Original idea
This project has been driven by product designer Oleg Frolov. Check out his amazing Dribble.
# License
Cribble is available under the MIT license. See LICENSE for details.