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

Scope change animating from center #446

Closed
agisboye opened this issue Oct 10, 2016 · 5 comments
Closed

Scope change animating from center #446

agisboye opened this issue Oct 10, 2016 · 5 comments

Comments

@agisboye
Copy link

agisboye commented Oct 10, 2016

During a recent update, it seems that the scope animation has changed so that calendar expands from the center rather than sliding out like a drawer.

Here's a gif of what I am describing: Imgur

Is there any way to use the old animation behavior?

@WenchaoD
Copy link
Owner

@agisboye Can you share a demo?

@agisboye
Copy link
Author

@WenchaoD I did. 😃
http://imgur.com/W1w8jZH

@WenchaoD
Copy link
Owner

@agisboye I mean a demo project. Could be a dropbox link.

@agisboye
Copy link
Author

@WenchaoD I misunderstood. I'll see if I can replicate the issue in a demo project.

I've tried using older versions of FSCalendar, that worked fine previously, and these have the same issue now. This leads me to believe that the problem is iOS 10 related. More specifically, I think it has to do with the SDK that the app is built against. The issue doesn't occur on iOS 10 if the app is built with Xcode 7/iOS 9 SDK.

@agisboye
Copy link
Author

I narrowed it down to the way I was animating an autolayout constraint. It turns out that iOS 10 handles animations differently. An answer on StackOverflow suggested calling layoutIfNeeded on the superview of a view rather than the view itself. This resolved the issue in my case.

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