You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, congrats on building this lib, it's really useful! One use case that I came across was animating a color change from a gradient to another from a single node. I tried using this piece of code provided from previous questions, but this would only apply animation changes to flat colors:
func tint(_ node:SVGNode, color:SVGColor){
if let group = node as?SVGGroup{
for content in group.contents {tint(content, color: color)}}else if let shape = node as?SVGShape{
shape.fill = color
}}
Is there a way to achieve this with the current state in which the framework is in?
The text was updated successfully, but these errors were encountered:
First of all, congrats on building this lib, it's really useful! One use case that I came across was animating a color change from a gradient to another from a single node. I tried using this piece of code provided from previous questions, but this would only apply animation changes to flat colors:
Is there a way to achieve this with the current state in which the framework is in?
The text was updated successfully, but these errors were encountered: