Skip to content

Commit

Permalink
Fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
buba447 committed Apr 23, 2020
1 parent 247b3e2 commit 559594a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lottie-swift/src/Public/Animation/AnimationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,11 @@ final public class AnimationView: LottieView {

animationLayer.position = position
animationLayer.transform = xform
#if os(OSX)
animationLayer.anchorPoint = layer?.anchorPoint ?? CGPoint.zero
#else
animationLayer.anchorPoint = layer.anchorPoint
#endif
animationLayer.add(positionAnimation, forKey: positionKey)
animationLayer.add(xformAnimation, forKey: transformKey)
} else {
Expand Down

0 comments on commit 559594a

Please sign in to comment.