Skip to content

Commit

Permalink
Merge pull request #395 from airbnb/btw/presentationCrash
Browse files Browse the repository at this point in the history
Fix for ios 8.1 and presentation layer crash
  • Loading branch information
buba447 authored Aug 29, 2017
2 parents 1c815dd + 72035ac commit 7cdb48c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ - (id)initWithLayer:(id)layer {
if (self = [super initWithLayer:layer]) {
if ([layer isKindOfClass:[LOTLayerContainer class]]) {
LOTLayerContainer *other = (LOTLayerContainer *)layer;
self.currentFrame = other.currentFrame;
self.currentFrame = [other.currentFrame copy];
}
}
return self;
Expand Down
6 changes: 1 addition & 5 deletions lottie-ios/Classes/Extensions/LOTRadialGradientLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ + (BOOL)needsDisplayForKey:(NSString *)key {
return [super needsDisplayForKey:key];
}

- (id)actionForKey:(NSString *)key {
if (self.actions[key]) {
return self.actions[key];
}

- (id)actionForKey:(NSString *)key {
if ([key isEqualToString:@"startPoint"] ||
[key isEqualToString:@"endPoint"] ||
[key isEqualToString:@"colors"] ||
Expand Down

0 comments on commit 7cdb48c

Please sign in to comment.