-
Notifications
You must be signed in to change notification settings - Fork 562
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
Animating fillVar has wrong behaviour with Auto Layout #708
Comments
#692 Oops. |
This pr actually fixes uneccessary scale animation but breaks layout at right start. When you change fillVar inside of viewDidLoad() without delay, it changes color with animation but saving original size from SVG code. Code reproducing this bug:
Example SVG
|
P.s. temporary workaround for this:
|
Hi! I was tempted to wait until the issues anniversary, as it turns out this is here for almost a year. I have some news, but most of them are bad I think
The bottom line is that we plan to fix this, but I can't promise when. At least we got some spicy memes out of it. |
@nikita-afonasov, |
Recently I faced with this issue.
public func animate<T>(from:,to:during:,delay:) where T:Macaw.Fill
animates both size and color when should animates only color (fillVar).And size is animating to original svg size and then gets back immediately (check gif below).
Here's bounds.
As you see icon's bounds is actual for Auto Layout but node's bounds are the same as source svg has.
How I layout icon:
How I update icon's color:
My guesses are:
The text was updated successfully, but these errors were encountered: