Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wess/Glimpse
UIView recording library.
https://github.com/wess/Glimpse
Last synced: 2 months ago
JSON representation
UIView recording library.
- Host: GitHub
- URL: https://github.com/wess/Glimpse
- Owner: wess
- License: mit
- Created: 2013-03-26T01:19:56.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-01-21T13:35:46.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T21:22:26.409Z (8 months ago)
- Language: Objective-C
- Size: 94.7 KB
- Stars: 556
- Watchers: 33
- Forks: 43
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - Glimpse - UIView recording library. (etc)
- awesome - Glimpse - UIView recording library. (etc)
README
# Glimpse
Glimpse is a simple library that allows you to create videos from UIViews. It records animations and actions as they happen by taking screen shots of a UIView in a series and then creating a quicktime video and saving it to your app’s document folder.## Setup
To setup Glimpse, add the `Glimpse` project file to your project or workspace. Import where you want to use it.## Example Usage
Glimpse only uses 2 methods that start and stop recording your view.```objectivec
#import@implementation myViewController
- (void)viewDidAppear
{
[super viewDidAppear:animated];
// Create a new Glimpse object.
Glimpse *glimpse = [[Glimpse alloc] init];
// Start recording and tell Glimpse what to do when you are finished
[glimpse startRecordingView:self.view onCompletion:^(NSURL *fileOuputURL) {
NSLog(@"DONE WITH OUTPUT: %@", fileOuputURL.absoluteString);
}];// Create a subview for this example
UIView *view = [[UIView alloc] initWithFrame:CGRectInset(self.view.bounds, 40.0f 40.0f)];
view.backgroundColor = [UIColor greenColor];
view.alpha = 0.0f;
[self.view addSubview:view];
// We are going to record the view fading in.
[UIView animateWithDuration:5.0 animations:^{
view.alpha = 1.0f;
} completion:^(BOOL finished) {
// Since our animation is complete, lets tell Glimpse to stop recording.
[glimpse stop];
}];
}
@end
```
## Developer info
* [Github](http://www.github.com/wess)
* [@WessCope](http://www.twitter.com/wesscope)## License
Read LICENSE file for more info.