Updates to fix bugs and add better doumentation

Fixed documenation
Version Bump
Removed debug
This commit is contained in:
Joe Blau 2014-03-25 07:27:22 -07:00
parent 0794fba47e
commit f187d9637b
3 changed files with 23 additions and 7 deletions

View File

@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "COSTouchVisualizer"
s.version = "1.0.0"
s.version = "1.0.1"
s.summary = "Visualize iOS finger touches, gestures and holds on external displays"
s.description = <<-DESC
Touch Screen Visualizer visualizes your touches, gestures, and holds on

View File

@ -10,9 +10,9 @@
// Turn this on to debug touches during development.
#ifdef TARGET_IPHONE_SIMULATOR
#define DEBUG_FINGERTIP_WINDOW 1
#define DEBUG_FINGERTIP_WINDOW 0
#else
#define DEBUG_FINGERTIP_WINDOW 1
#define DEBUG_FINGERTIP_WINDOW 0
#endif
@interface COSTouchSpotView : UIImageView

View File

@ -44,14 +44,30 @@ To run the example project; clone the repo, and run `pod install` from the Examp
}
```
**Debugging Mode**
To enable debugging mode, edit the `COSTouchVisualizerWindow.m` file in the Pods Project under Pods/COSTouchVisualizerWindow/COSTouchVisualizerWindow.m
```objective-c
#ifdef TARGET_IPHONE_SIMULATOR
#define DEBUG_FINGERTIP_WINDOW 0
#else
#define DEBUG_FINGERTIP_WINDOW 0
#endif
```
**Customization**
```objective-c
// Add these lines after the windows is initialized
[customWindow setFillColor:[UIColor yellowColor]];
[customWindow setStrokeColor:[UIColor purpleColor]];
[customWindow setTouchAlpha:0.4];
// Touch Color
[customWindow setFillColor:[UIColor yellowColor]];
[customWindow setStrokeColor:[UIColor purpleColor]];
[customWindow setTouchAlpha:0.4];
// Ripple Color
[customWindow setRippleFillColor:[UIColor yellowColor]];
[customWindow setRippleStrokeColor:[UIColor purpleColor]];
[customWindow setRippleAlpha:0.1];
```
## Requirements