Can we do changing colors in json file of lottie animation and return "Animation"? (iOS, Swift) #1720
pr0khorovmaksim
started this conversation in
Ideas
Replies: 1 comment 5 replies
-
https://lottiefiles.com has an editor that lets you modify the colors of layers and then re-export an updated json file. It's really useful! I think visual editors like that (or modifying the colors in the original after effects file) are likely a better UX than making modifications using Swift code. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Lottie Team and developers
Now we change the colors of the lottie animation as follows:
let animationView = AnimationView()
let animationView.setValueProvider(colorProvider, keypath: keypath)
The ideal solution would be to prepare animations in advance by changing their colors in JSON
It is necessary to prepare animations with other colors in advance, the current implementation does not allow this. I need to get a ready Animation or JSON output so that I can then assign it to AnimationView
need the following functions, example:
func updateJSON() -> Animation
func updateJSON() -> JSON (update json file)
Thank you!
Max
Beta Was this translation helpful? Give feedback.
All reactions