Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation with Polyline #114

Closed
charliefancelli opened this issue Apr 12, 2017 · 2 comments
Closed

Animation with Polyline #114

charliefancelli opened this issue Apr 12, 2017 · 2 comments
Milestone

Comments

@charliefancelli
Copy link

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

@vhailor13
Copy link
Contributor

Hello @charliefancelli ,
Just fixed this bug in master branch. Upcoming release will contain this fix. Until then you can link master branch in Podfile:
pod 'Macaw', git: 'https://github.com/exyte/Macaw.git'

Thanks for report!

@charliefancelli
Copy link
Author

hi @vhailor13 ,
Thanks for the fix (it's fix the scale too ^^ )

@ystrot ystrot added this to the 0.8.2 milestone May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants