Makes private and improves animatedBox in AbstractPostListViewControl.#5295
Makes private and improves animatedBox in AbstractPostListViewControl.#5295diegoreymendez merged 9 commits intodevelopfrom
Conversation
|
|
||
| var postListFooterView : PostListFooterView! | ||
| var animatedBox : WPAnimatedBox? | ||
| private var animatedBox : WPAnimatedBox = { |
There was a problem hiding this comment.
It looks like the animated box is never modified, so this can be made a constant. You can also just initialise it directly: private let animatedBox = WPAnimatedBox.newAnimatedBox().
|
This looks good, @diegoreymendez, just a few small comments in the code. Also, if we're improving and then any calls to |
|
@frosty - Addressed all feedback. Good review. Ready for another round. |
| BOOL _isPreparedToAnimate; | ||
| } | ||
|
|
||
| @property (nonatomic, assign, readwrite) BOOL isPreparedToAnimate; |
|
Thanks for making the changes! My only remaining query (I feel like I'm nitpicking here!) is that the name of But at the beginning of I read this as "if we're not already prepared to animate, we don't execute the method named |
|
@frosty - Agreed, I think this class needs more clarity, so read below... Made a few changes to improve the interface for this class.
|
|
And... changed |
|
Ping @frosty! :) |
|
Sorry for dropping this, @diegoreymendez! Your changes look great – much improved :) However, when I was testing on my device, I wasn't seeing the animation happen at all. I've done some digging and it looks like it's related to (Check whether the page needs transforming before applying the transformation). Let me know what you think! |
|
This PR is ready for another look @frosty. Very nice finds in your review. I used your code suggestion as a starting point, but instead of checking if the transform was identity, I'm now enforcing it before the code that follows up. |
|
Good solution @diegoreymendez! This fixes the problem for me :)
|
|
Thanks @frosty! |
Description:
animatedBoxinAbstractPostListViewControllerby making it non-optional, and by making it animate.animatedBoxprivate inAbstractPostListViewController.WPAnimatedBox.m.Additional info:
The way in which
WPAnimatedBoxis being animated now is kinda hackish - since the delay we added is not guaranteed to work. A refactor to this classes would be better.However, since the animation not working would be low-impact, I think the solution should be acceptable until I can get around to actually refactoring these classes.
To test:
/cc @frosty for review
/fyi @aerych (cos you know this code better).