Cribble - a tool for visual testing iPhone and iPad apps. Every pixel counts.
Anexample app is included demonstrating Cribble's functionality.
Simply add the following lines into your app delegate:
import Cribble override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent?) { guard motion == .MotionShake else { return } Cribble.shared.hidden = !Cribble.shared.hidden }
Shake a device and explore ui's roughness.
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.redColor()) Cribble.shared.options = options
To integrate Cribble into your Xcode project using CocoaPods, specify it in your Podfile
:
pod 'Cribble'
Add the line github "maxsokolov/cribble"
to your Cartfile
.
Clone the repo and drag files from Sources
folder into your Xcode project.
This project has been driven by product designerOleg Frolov. Check out his amazing Dribble .
Cribble is available under the MIT license. See LICENSE for details.