Swifty tool for visual testing iPhone and iPad apps. Every pixel counts.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Configs add configs Jul 12, 2016
Cribble.xcodeproj support swift 4.0 Mar 30, 2018
Demo
Sources
.gitignore add gitignore Jul 4, 2016
.swift-version support swift 4.0 Mar 30, 2018
Cribble.podspec support swift 4.0 Mar 30, 2018
LICENSE add license file Jul 12, 2016
README.md support swift 4.0 Mar 30, 2018

README.md

Cribble

Swift 4.0 compatible Carthage compatible CocoaPods compatible Platform iOS License: MIT

Cribble - a tool for visual testing iPhone and iPad apps. Every pixel counts.

Cribble

Getting Started

An example app is included demonstrating Cribble's functionality.

Usage

Simply add the following lines into your app delegate:

import Cribble

override 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:

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:

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.