mirror of
https://github.com/joeblau/COSTouchVisualizer.git
synced 2024-09-11 12:36:58 +03:00
Updates to fix bugs and add better doumentation
Fixed documenation Version Bump Removed debug
This commit is contained in:
parent
0794fba47e
commit
f187d9637b
@ -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
|
||||
|
@ -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
|
||||
|
24
README.md
24
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user