Let nodes deallocate naturally, manually trampoline UIKit ivars

Be more aggressive with main thread punting

Trampoline setting the dataSource/delegate onto the main thread

Short-circuit the supplementary nodes method if no data source

Don't rely on assertions

Mark variable unused to fix release builds

Handle ASCollectionNode/ASTableNode deallocation better

Add some comments about new macro
This commit is contained in:
Adlai Holler
2016-09-09 11:09:57 -07:00
parent 1b0b9e4830
commit 6d01bbeb19
19 changed files with 394 additions and 651 deletions

View File

@@ -14,7 +14,6 @@
#import <AsyncDisplayKit/_ASAsyncTransactionContainer.h>
#import <AsyncDisplayKit/ASBaseDefines.h>
#import <AsyncDisplayKit/ASDealloc2MainObject.h>
#import <AsyncDisplayKit/ASDimension.h>
#import <AsyncDisplayKit/ASAsciiArtBoxCreator.h>
#import <AsyncDisplayKit/ASLayoutElement.h>
@@ -106,7 +105,7 @@ extern NSInteger const ASDefaultDrawingPriority;
*
*/
@interface ASDisplayNode : ASDealloc2MainObject <ASLayoutElement>
@interface ASDisplayNode : NSObject <ASLayoutElement>
/** @name Initializing a node object */