Skip to content

Commit

Permalink
Merge pull request airbnb#428 from dabbott/da--fix-osx-layer-contents
Browse files Browse the repository at this point in the history
Fix images crashing due to layer contents bug on OSX
  • Loading branch information
buba447 committed Sep 26, 2017
2 parents 93f9a23 + 4ab4357 commit 973c08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lottie-ios/Classes/AnimatableLayers/LOTLayerContainer.m
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ - (void)_setImageForAsset:(LOTAsset *)asset {
CGFloat desiredScaleFactor = [window backingScaleFactor];
CGFloat actualScaleFactor = [image recommendedLayerContentsScale:desiredScaleFactor];
id layerContents = [image layerContentsForContentsScale:actualScaleFactor];
_wrapperLayer = layerContents;
_wrapperLayer.contents = layerContents;
}
}

Expand Down

0 comments on commit 973c08d

Please sign in to comment.