Skip to content

Commit

Permalink
fix: incorrect type (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRogue76 committed Apr 7, 2024
1 parent e033ec8 commit 73a076e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/ios/LottieReactNative/PlatformColor.swift
Expand Up @@ -15,10 +15,10 @@ typealias PlatformColor = NSColor

// NSColor doesn't have this extension (UIColor receives it from Lottie), so we add it here
public extension NSColor {
var lottieColorValue: Color {
var lottieColorValue: LottieColor {
var r: CGFloat = 0, g: CGFloat = 0, b: CGFloat = 0, a: CGFloat = 0
getRed(&r, green: &g, blue: &b, alpha: &a)
return Color(r: Double(r), g: Double(g), b: Double(b), a: Double(a))
return LottieColor(r: Double(r), g: Double(g), b: Double(b), a: Double(a))
}
}

Expand Down

0 comments on commit 73a076e

Please sign in to comment.