Animations behaving differently in latest version
dancemonkey opened this issue · comments
Expected Behavior
- Tableview rows: offset by 200 and slide in from below (working in release version of app, using prior ViewAnimator code)
- Button: zoom in from initial scale of .25 (same)
Actual Behavior
- Tableview rows start in place and move up into offset position (so 200 off the top of the screen)
- Button: starts and remains at .25 scale
Steps to Reproduce the Problem
- Corrected code to new syntax. myView.animate() or myView.animatAll(), inserting array of animation types as argument, in this example a single animation in brackets
- Observe unexpected behavior in simulator
Specifications
- Version: XCode 9.0.1, iOS 11
- Platform: iOS, Swift
Some more info: I just realized that I have the same animation running on two different tables in two different VCs, and it is behaving differently in each. I'm calling a tableView.animateAll on each table, but one animates exactly as expected (though never on the initial load of the VC, which was working fine before), while the other animates the cells up and out of the view entirely (rather than animating them into place from below).
Both are driven by NSFetchedResultsControllers, and I tried matching autolayout contstraints on the offending table with the table that is animating properly but it had no effect.
EDIT: Figured out that a tableView.reloadDate() in my viewDidLoad is causing the issue. Not needed anymore because of the NSFC so I can remove it.