TouchSimulator-iOS14
TouchSimulator-iOS14 copied to clipboard
simulate touch tool working on iOS14
TouchSimulator-iOS14
Simulate touch tool working on iOS14.
Also, it currently does not work on the keyboard.
#import "TouchSimulator.h"
%ctor {
simulateTouch(TOUCH_DOWN, 100, 100);
simulateTouch(TOUCH_MOVE, 100, 300);
simulateTouch(TOUCH_UP, 100, 300);
}
Usage
If you want to simulate touch in any app, execute the simulateTouch in the %ctor block (only available on Jailbroken device).
If you only simulate touch in certain applications, execute the simulateTouch at any time.
Copy TouchSimulator.xm, TouchSimulator.h and headers/ to your project directory
Tap
simulateTouch(TOUCH_DOWN, 100, 100);
simulateTouch(TOUCH_UP, 100, 100);
Drag
simulateTouch(TOUCH_DOWN, 100, 100);
simulateTouch(TOUCH_MOVE, 100, 300);
simulateTouch(TOUCH_UP, 100, 300);