Closed whiskey closed 10 months ago
@whiskey, this should be an easy fix. Any interest in posting a pull request?
I'd suggest changing the #if os(iOS) || os(tvOS) || os(watchOS) || targetEnvironment(macCatalyst)
in that file to simply #if canImport(UIKit)
, which should work.
I'm writing on the fix and am currently checking if there are any tests I have to cover.
Which Version of Lottie are you using?
Lottie 4.3.4
Expected Behavior
The
UIColor
extension for thepublic var lottieColorValue: LottieColor
is not available on visionOS. I expect the following statement to work:let lottieColor = myUIColor.lottieColorValue
Actual Behavior
On visionOS 1.0 the compiler does not recognize the property.
Animation JSON
n/a