I am loading the animation typing indicator from the json file using lottie framework. I want to change the animation of the indicator color. I don't want to change the colour from the json file. Want to change the colour for animation view programmatically.
Eg : (. . . .) -> Typing indicator (Want to change the dot colour)
private let animationView = LOTAnimationView(name:
Constants.ImageAssets.typingIndicatorIcon, bundle:Bundle(identifier: Constants.GenericKeys.bundleIdentifier)!)
private func loadTypingIndicator() {
animationView.loopAnimation = true
animationView.translatesAutoresizingMaskIntoConstraints = true
// *** It's not working
animationView.setValue(UIColor.green, forKeypath: "boule.Ellipse 1.Fill 1.Color", atFrame: 0)
animationView.play()
}