Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

1.9.2

Compare
Choose a tag to compare
@appleguy appleguy released this 30 Nov 06:52
· 2930 commits to master since this release

AsyncDisplayKit 1.9.2 has two very useful new APIs, and several key refinements over 1.9.1. It is recommended for all production users of ASDK.

60 commits from 6 contributors
125 files changed with 3,565 lines added and 492 lines deleted

New APIs:

  • ASStackLayoutSpec now includes Space Between and Space Around as options for .justifyContent. This enables positioning two elements at the opposite extremes of a stack (in either orientation), and additional elements equally spaced in between. Optionally, Space Around allows you to donate half a padding width to before the start and after the end (could be simulated using an ASInsetLayoutSpec). These capabilities are part of FlexBox, but that neither ASDK or CK had implemented it yet: #848
  • Powerful new ASInterfaceState property on ASDisplayNode. This bitfield allows any node in the hierarchy to know if it is in the fetch data, render, or visible ranges at any time, and react to any state transitions. Though calls for the FetchData and Render ranges had existed, it was not possible to read the current state — and the Visible range is brand new, with many animation-related uses.

Other Noteworthy:

  • Another awesome new example app in examples/CustomCollectionView, showing a Pinterest-like collection view layout with support for supplementary nodes.
  • Bug fix for issues with ASRangeController that cause a failure to call range-related callback for visible elements after reloading data of a table or collection.
  • Bug fix for loading issues with ASMultiplexImageNode (especially, a newly-set higher res URL may not load if the node is already in the FetchData range).

Full commit list here: 1.9.1...1.9.2

Thanks for using AsyncDisplayKit! I'd love to hear your questions or suggestions in a Github Issue.

screen shot 2015-11-29 at 10 41 57 pm