Skip to content

Commit 8e6d311

Browse files
author
Lasha Efremidze
committed
0.0.6
1 parent b31341f commit 8e6d311

File tree

6 files changed

+15
-2
lines changed

6 files changed

+15
-2
lines changed

Animoji.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Animoji'
3-
s.version = '0.0.5'
3+
s.version = '0.0.6'
44
s.summary = 'Animoji'
55
s.homepage = 'https://github.com/efremidze/Animoji'
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change log
22

3+
## [Version 0.0.6](https://github.com/efremidze/Animoji/releases/tag/0.0.6)
4+
Released on 2017-03-14
5+
6+
- Added Snapshot Support
7+
38
## [Version 0.0.5](https://github.com/efremidze/Animoji/releases/tag/0.0.5)
49
Released on 2017-02-08
510

Sources/AnimojiView.h

+1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@
2626
- (void)startRecording;
2727
- (void)stopPreviewing;
2828
- (void)stopRecording;
29+
- (UIImage*)snapshotWithSize:(CGSize)size;
2930

3031
@end

Sources/AnimojiView.m

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ - (AVTPuppetView *)puppetView
5151
if (!_puppetView) {
5252
_puppetView = [[NSClassFromString(@"AVTPuppetView") alloc] initWithFrame:self.bounds];
5353
_puppetView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
54+
_puppetView.backgroundColor = UIColor.whiteColor;
5455
[self addSubview:_puppetView];
5556
}
5657
return _puppetView;
@@ -148,4 +149,9 @@ - (void)stopPreviewing
148149
[self.puppetView stopPreviewing];
149150
}
150151

152+
- (UIImage*)snapshotWithSize:(CGSize)size
153+
{
154+
return [self.puppetView snapshotWithSize:size];
155+
}
156+
151157
@end

Sources/Headers/AVTPuppetView.h

+1
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,5 @@
269269
- (void)startRecording;
270270
- (void)stopPreviewing;
271271
- (void)stopRecording;
272+
- (UIImage*)snapshotWithSize:(CGSize)arg1;
272273
@end

Sources/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.0.5</string>
18+
<string>0.0.6</string>
1919
<key>CFBundleVersion</key>
2020
<string>$(CURRENT_PROJECT_VERSION)</string>
2121
<key>NSPrincipalClass</key>

0 commit comments

Comments
 (0)