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

Sometimes Chain-Repeat Animation do not work as I expect #2

Closed
raypanq opened this issue Jun 25, 2015 · 9 comments
Closed

Sometimes Chain-Repeat Animation do not work as I expect #2

raypanq opened this issue Jun 25, 2015 · 9 comments

Comments

@raypanq
Copy link

raypanq commented Jun 25, 2015

UIView.animateAndChainWithDuration(1.0, delay: 0.0, options: nil, animations: { () -> Void in
    self.layer.borderColor = flashBorderColor.CGColor
}, completion: nil).animateWithDuration(1.0, delay: 0.0, options: UIViewAnimationOptions.Repeat, animations: { () -> Void in
    self.layer.borderColor = originBorderCGColor
}, completion: nil)

I expect it could flash borderColor, but not works for me.
already read the demoApp's example, can not figure out what's going wrong here, pls help :(

@icanzilb
Copy link
Owner

I'll try to reproduce later today

@icanzilb
Copy link
Owner

this might be a bug related to animating only layer properties in the animations block; definitely high prio on my todo list, will let you know when I upload a fix

@icanzilb
Copy link
Owner

@pangyulei "but not works for me." - what exactly happens?

@raypanq
Copy link
Author

raypanq commented Jun 26, 2015

@icanzilb I set NSTimeInterval to 1 sec, but it change borderColor immediately.

@icanzilb
Copy link
Owner

okay so it just flashes very quickly between the two colors, right?

@raypanq
Copy link
Author

raypanq commented Jun 26, 2015

@icanzilb right

@icanzilb
Copy link
Owner

alright - that's a bug I'm working currently on I'll release a new pod version by end of the week to publish the fix

@icanzilb
Copy link
Owner

fixed in the latest version 0.7.0 - give it a try please and let me know

@raypanq
Copy link
Author

raypanq commented Jun 29, 2015

@icanzilb works fine now! thx!

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

2 participants