Skip to content

Commit

Permalink
Skip unknown case check for LottieContentMode on macOS target
Browse files Browse the repository at this point in the history
  • Loading branch information
nekrich committed Apr 22, 2019
1 parent 84009f1 commit e3ae198
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lottie-swift/src/Public/Animation/AnimationView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -608,9 +608,12 @@ final public class AnimationView: LottieView {
position.x = bounds.maxX - animation.bounds.midX
position.y = bounds.maxY - animation.bounds.midY
xform = CATransform3DIdentity

#if os(iOS) || os(tvOS)
@unknown default:
print("unsupported contentMode: \(contentMode.rawValue); please update lottie-ios")
xform = CATransform3DIdentity
#endif
}
animationLayer.position = position
animationLayer.transform = xform
Expand Down

0 comments on commit e3ae198

Please sign in to comment.