TouchVisualizer

About TouchVisualizer

TouchVisualizer is a powerful debugging tool for iOS development that visualizes touch events and provides essential information to developers. With TouchVisualizer, you can easily inspect touch events, recognize gesture patterns, and improve overall user experience in your iOS applications.

Key Features

  • Real-time visualization of touch events on the device screen
  • Distinguish between single taps, double taps, and long presses
  • Ability to visualize multi-touch events and gestures
  • Customizable appearance and touch indicators
  • Show touch force data (for devices supporting 3D Touch)
  • Display touch coordinates and event information
  • Compatible with iOS simulator and physical devices

Installation

To integrate TouchVisualizer into your project, follow these steps:

  1. Install via CocoaPods:
pod 'TouchVisualizer'
  1. Add the following line to your AppDelegate class:
#import <TouchVisualizer/TouchVisualizer.h>
  1. Initialize TouchVisualizer in your application:didFinishLaunchingWithOptions: method:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [TouchVisualizer start];
    // Rest of your code
    return YES;
}

Usage

After integrating TouchVisualizer, you can easily enable or disable it during development:

  1. Enable TouchVisualizer:
[TouchVisualizer start];
  1. Disable TouchVisualizer:
[TouchVisualizer stop];

Note: By default, TouchVisualizer is enabled when you start your application.

Customization

TouchVisualizer provides customization options to adapt its appearance and behavior according to your preferences:

  1. Change Touch Indicator Color:
[TouchVisualizer setTouchColor:[UIColor redColor]];
  1. Enable/Disable Force Touch Display:
[TouchVisualizer setShowTouchesWithForce:YES];
  1. Change Force Touch Indicator Color:
[TouchVisualizer setForceTouchColor:[UIColor greenColor]];

In addition to the above, you can explore more customization options in the official GitHub repository.

Compatibility

TouchVisualizer is compatible with the following:

  • iOS 9.0+
  • Xcode 10+
  • Objective-C and Swift projects

Conclusion

With TouchVisualizer, you have the power to easily debug and visualize touch events in your iOS applications, aiding in the creation of intuitive and user-friendly experiences. Start utilizing TouchVisualizer today and enhance your iOS development journey!