Skip to content

Animation with Polyline #114

@charliefancelli

Description

@charliefancelli

Hi,

Is it possible to animate a Polyline?

I just spent 2 hours without success.
I tried to make an easy opacity animation with a circle and it's works but with a Polyline there is not animation, only the first state and the final state. Did i missed something ?

...
let spider = Polyline(points: points).fill(with: Color.red)
spider.onTap{ _ in
    spider.opacityVar.animate(from: 0.0, to: 1.0, during: 1, delay: 0.0) //not animation
    circleExtern.opacityVar.animate(from: 0.0, to: 1.0, during: 1, delay: 0.0) //it's works
}

Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions