I'm creating a jailbreak tweak for iphone (running iOS 7) using theos.
I really new to this and you can consider this as my first tweak!
What I want? :
- Check if its the 1st home screen
- IF 1st screen then, Detect for Swipe right gesture
- Do Something on Swipe right
Just like how spotlight for ios 6 and below worked.
My Code:
#import <SpringBoard/SpringBoard.h>
%hook SpringBoard
-(void)applicationDidFinishLaunching:(id)application {
%orig;
//Check if its the 1st home screen
//Detect for Swipe right gesture
//Do Something on Swipe right
}
%end
I can use touchesBegan, touchesMoved, touchesEnded. But how do I implement the gesture?
Am I missing any imports?