Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon_withrow committed Aug 30, 2017
1 parent c172c5e commit 7733537
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lottie-ios.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'lottie-ios'
s.version = '2.1.2'
s.version = '2.1.3'
s.summary = 'Used to natively render vector animations exported from After Effects.'

s.description = <<-DESC
Expand Down
2 changes: 2 additions & 0 deletions lottie-ios/Classes/Private/LOTAnimatedSwitch.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,12 @@ - (void)_toggle {

- (void)_toggleAndSendActions {
if (self.isEnabled) {
#ifndef TARGET_OS_TV
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0) {
UIImpactFeedbackGenerator *generator = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight];
[generator impactOccurred];
}
#endif
[self setOn:!_on animated:YES];
[self sendActionsForControlEvents:UIControlEventValueChanged];
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lottie-ios",
"version": "2.1.2",
"version": "2.1.3",
"description": "Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations exported as json with bodymovin and renders the vector animations natively on mobile and through React Native!",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7733537

Please sign in to comment.