Post on 07-Aug-2015
transcript
Visualize your touches TouchVisualizer
potatotips#17
tw: morizotter github: morizotter https://www.wantedly.com/users/1208490 Love travelling and Sento.
Hobby: Github work and translation
Want to visualize touches
at the presentation.
Easily.At once.
Because it is secondary task.
It’s just one line!
Optional
Cocoapods & Carthage
morizotter/TouchVisualizer
Multiple fingers supported.Multiple UIWindows supported.Shows touch radius.Shows touch duration.Change colors and images of finger points.
How it works
Event dispatching
T1
T2
T3
T1
T
T1 T1 T1
T2 T2 T2 T2
T3 T3
T2
T3 T3 T3UIWindow
View
Event
Same instance
Code
Method Swizzling
Method Swizzling
Swizzle only once
12
Method Swizzling
Injection
Same UITouch object is coming from one finger.
Event Handling
NSRunLoopCommonModes
http://stackoverflow.com/a/4136988/1245142
NSRunLoopCommonModes includes both the default and event tracking
modes
End