mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-06-15 01:19:03 +08:00
1.6 KiB
1.6 KiB
title, layout, permalink, prevPage, nextPage
| title | layout | permalink | prevPage | nextPage |
|---|---|---|---|---|
| Upgrading to 2.0 <b><i>(New)</i></b> | docs | /docs/upgrading.html | installation.html | image-modification-block.html |
AsyncDisplayKit 2.0 Beta is (almost) here! Here's a brief summary of the changes on master as of today:
Find & replace API naming improvements:
.usesImplicitHierarchyManagementrenamed to.automaticallyManagesSubnodesfor Automatic Subnode ManagementASRelativeDimensionTypePercentand associated functions renamed to useFractionto be consistent with Apple terminology.
Updated Interface State callback method names
The new names are meant to unify the range update methods to show how they relate to each other & hopefully be a bit more self explanatory:
didEnter/ExitPreloadStatedidEnter/ExitDisplayStatedidEnter/ExitVisibleState
These new methods replace the following:
loadStateDidChange:(BOOL)inLoadStatedisplayStateDidChange:(BOOL)inDisplayStatevisibleStateDidChange:(BOOL)isVisible
Make sure to check:
constrainedSizeForNodeAtIndexPath:moved from the.dataSourceto the.delegateto be consistent with UIKit definitions of the roles. Note: Make sure that you provide a delegate for anyASTableNode,ASCollectionNodeorASPagerNodesthat use this method.
Good to know:
- Layout Transition API (
transitionLayoutWithDuration:) has been moved out of Beta
The majority of the remaining (unmerged) changes will be in the Layout API.