- Drag the group of files "Reusable Debug Draw" into your project.
- Setup the gesture listener by adding the following to
AppDelegate
.
DebugDrawPresenter.sharedInstance.listenForGestureOn(view: window)
- You can now tap 5 times anywhere to present the DebugDraw.
- To change how the app decides weather to show the debug screen, or just a popover message, overide the
typeEvaluation
message in theDebugDrawPresenter
singleton, with your own condition checking. - To add things to the debug draw, simply edit the
DD_DrawViewController.swift
and theDebugDraw.storyboard
.