Visualize touches, gestures and long presses on your iPhone or iPad
Go to file
2014-03-23 21:21:39 -07:00
Classes Updated metadata 2014-03-23 21:21:39 -07:00
Example Updated metadata 2014-03-23 21:21:39 -07:00
.gitignore Initial commit 2014-03-22 11:47:04 -07:00
CHANGELOG.md Updated metadata 2014-03-23 21:21:39 -07:00
COSTouchVisualizer.podspec Updated metadata 2014-03-23 21:21:39 -07:00
LICENSE Initial commit 2014-03-22 11:47:04 -07:00
Rakefile Initial commit 2014-03-22 11:47:04 -07:00
README.md Updated metadata 2014-03-23 21:21:39 -07:00
screenshot-drag.png Updated metadata 2014-03-23 21:21:39 -07:00
screenshot-press.png Updated metadata 2014-03-23 21:21:39 -07:00
touchvisdemo.gif Updated metadata 2014-03-23 21:21:39 -07:00

COSTouchVisualizer

COSTouchVisualizer

Version Platform

Usage

To run the example project; clone the repo, and run pod install from the Example directory first.

With Storyboards

in your AppDelegate implementation simply add the following getter

#import <COSTouchVisualizerWindow.h>

...

// Add this method to your AppDelegate method
- (COSTouchVisualizerWindow *)window
{
    static COSTouchVisualizerWindow *customWindow = nil;
    if (!customWindow) customWindow = [[COSTouchVisualizerWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    return customWindow;
}

Without Storyboards

#import <COSTouchVisualizerWindow.h>

...

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Setup window
    self.window = [[COSTouchVisualizerWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];

    ...

}

Customization

// Add these lines after the windows is initialized
    [customWindow setFillColor:[UIColor yellowColor]];
    [customWindow setStrokeColor:[UIColor purpleColor]];
    [customWindow setTouchAlpha:0.4];

Requirements

Installation

COSTouchVisualizer is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "COSTouchVisualizer"

Author

Joe Blau, josephblau@gmail.com

License

COSTouchVisualizer is available under the MIT license. See the LICENSE file for more info.