facebookarchive / AsyncDisplayKit

Smooth asynchronous user interfaces for iOS apps.
http://asyncdisplaykit.org
Other
13.4k stars 2.2k forks source link

ASCollectionNode Bugs on Master Branch #3074

Closed QuynhNguyen closed 7 years ago

QuynhNguyen commented 7 years ago
screen shot 2017-02-24 at 1 01 25 am

On version 2.2 and under, the search bar would display properly below the status bar but on master the status bar would overlap it a bit. The following is my collection node hierarchy

nguyenhuy commented 7 years ago

Hi, thanks for reporting. Could you please help us to bisect recent commits?

appleguy commented 7 years ago

@QuynhNguyen Yes, thanks for filing this. I was about to file an issue myself too, as I'm encountering something very similar with supplementary nodes (in my case, crashing).

@nguyenhuy Fortunately this can be reproduced right away with examples/CustomCollectionView. I suggest you have my PR applied just to make sure you don't hit the unnecessary assertions at a stage earlier than the actual crash: (this is now in master, so just pull to latest) https://github.com/facebook/AsyncDisplayKit/pull/3079

The attached .txt has some debug logs that I found helpful. Here's the issue:

I think it is possible that the async sizing pass for the cells somehow doesn't gate the collection becoming aware of the supplementary nodes earlier, before the sizing pass is done.

@nguyenhuy @Adlai-Holler thank you so much for all the work on ASDataController! It is very architecturally impressive, and truly represents a successful new era of one of the most crucial components in the framework. These bugs are likely to be small fixes.

SupplementaryMapLogging.txt

Adlai-Holler commented 7 years ago

Thanks @QuynhNguyen, @appleguy, and @nguyenhuy! Resolved in the linked PR.