JVTouchEventsWindow is a simple helper framework to display touch events within your projects/apps demos, with easy customization. It really comes handy when you want to show off your app and create a preview video/gif of your app.
Preview 1 - Touch/Click Me!
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
- Now, go to your AppDelegate.m file and add this simple function, where you can customize your touch event image with just changing the size and color
- (JVTouchEventsWindow *)window
{
static JVTouchEventsWindow *sharedWindow = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sharedWindow = [[JVTouchEventsWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]
andImageColor:[[UIColor grayColor] colorWithAlphaComponent:0.7]
withImageSize:CGSizeMake(40, 40)];
});
return sharedWindow;
}
Requirements
Developed and tested using iOS11+
Installation
JVTouchEventsWindow is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JVTouchEventsWindow"
Author & Support
Contact me if you find any bugs or potential room for improvements. Jorge Valbuena (@JV17), [email protected]. BTW! You are welcome to help in supporting this pod or making improvements to it.
License
JVTouchEventsWindow is available under the MIT license. See the LICENSE file for more info.