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);
}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
simulateTouch(TOUCH_DOWN, 100, 100);
simulateTouch(TOUCH_UP, 100, 100);simulateTouch(TOUCH_DOWN, 100, 100);
simulateTouch(TOUCH_MOVE, 100, 300);
simulateTouch(TOUCH_UP, 100, 300);