This is an iOS-8 Dynamic framework that gives you "Debug Puck"; a small item on the screen that can be tapped to provide "hidden" information.
We generally implement things like this into our apps during QA or UAT. It is intended to let the tester obtain information which a normal user would not normally have access to.
I've found over the years, I am constantly implementing something similar, for each project, over and over. Now, I won't have to. I'll just pull this in via Carthage.
The "puck" is flickable, around the edges of the screen. The user can fling move it out of the way. The user can totally dismiss the puck by double-tapping it.
This framework is carthage compatible, so it's easy to use. You can wire it up to a hidden shake or super-secret gesture.
You'll add the puck to the current UIWindow:
_puckControl = [[LDTPuckControl alloc] initInWindow:window
withLocation:LDTPuckViewLocationBottomRight
withDelegate:self
dataSource:self
puckColor:[UIColor yellowColor]
puckBorderColor:[UIColor redColor]
animated:YES];
You'll want to provide it a delegate and data source. Then tell it to present:
[_puckControl presentPuckAnimated:YES];
This framework comes with logical unit tests, as well as acceptance tests (done with KIF). To run them:
xcodebuild -workspace DebugPuck.xcworkspace -scheme "Puckster" -destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' test
xcodebuild -workspace DebugPuck.xcworkspace -scheme "Puckster Acceptance Tests" test
Puckster is released under the MIT License.
