CanvasPod/Canvas

CSAnimations not starting after modal presentation

Opened this issue · 5 comments

The issue can be seen in the two videos below. The login view is a CSAnimation view which is set up in Interface Builder. The login view has a zoomOut animation set which is firing when the login screen is the initial view controller, but not when presented modally.

NOTE: I am running this in XCode 6 using Swift. I don't think that is the problem, though, since I have tried this using the deprecated modal transitions as well.

Non-modal: https://docs.google.com/a/mutualmobile.com/file/d/0B9C9Tl1ZlArPTGJXWkQ3YVExbms/edit

Modal: https://docs.google.com/a/mutualmobile.com/file/d/0B9C9Tl1ZlArPTGJXWkQ3YVExbms/edit

Do you guys have any ideas why this is happening? It seems like the CSAnimation is firing twice when presented modally but once when the screen is the initial view controller.

Seems the two links points to the same video.

May not necessary solve the issue but did you try adding "delay" interval or manually triggering [self.view startCanvasAnimation] in viewDidAppear just to verify if it works?

I can confirm this problem, well but yes you can bypass by triggering the animations in the viewDidAppear method.

Oops.

Working: https://docs.google.com/file/d/0B9C9Tl1ZlArPTkN5VlZraklaRTA/edit

The delay does not fix the issue, but calling startCanvasAnimation() in viewWillAppear is how I got the animation to fire.

Great you solve the problem for now. I am not quite sure if there's a problem with model present animation with canvas animation, but i will keep an eye on fixing the problem, thanks guys!

Cool. Thank you!