Huy Nguyen
375f99eb66
Update Kittens sample to use new layout system.
2015-06-25 11:34:36 +07:00
Huy Nguyen
e23a3fe4c2
Add layout tests.
2015-06-25 11:34:36 +07:00
Huy Nguyen
abe98d5b09
Integrate new layout nodes to the framework.
...
- Introduce ASLayoutNode and its subclasses.
- ASDisplayNode measures its ASLayoutNode and cache the result (ASLayout). Calculated size and position of each subnode can be retrieved from the calculated layout.
- Custom nodes need to override -layoutNodeThatFits:(CGSize) instead of -calculateSizeThatFits:(CGSize).
- Custom nodes do not need to layout its subnodes (in -layout:) anymore. ASDisplayNode can handle the job most of the time, by walking through its layout tree.
- ASCompositeNode is used to embed (display) subnodes to a node's layout. That way, each subnode will also be measured while the parent node is measuring. And the parent node knows where its subnodes are within its layout.
2015-06-25 11:34:35 +07:00
Huy Nguyen
f8531f467d
Add Layout nodes.
...
- The code is forked from LayoutComponents in ComponentKit.
- Public interfaces are modified to be strictly Objective-C. As a result, users are not forced to switch to Objective-C++, the linker can happily compile and Swift fans can continue using the mighty ASDK.
2015-06-25 11:32:30 +07:00
appleguy
71d9f210f1
Merge pull request #507 from sebreh/master
...
Include missing files in iOS Framework target
2015-06-24 15:45:35 -07:00
appleguy
3560ff98e7
Merge pull request #508 from victormayorov/master
...
Implemented UIAccessibilityIdentification for ASDisplayNode
2015-06-24 15:45:09 -07:00
Ethan Nagel
baf91b4a45
validate that _pendingVisibleIndexPath is contiguous with visibleIndexPaths before appending it. Also, always return a sorted array of NSIndexPaths
2015-06-24 13:18:12 -07:00
Ethan Nagel
0e37bff7c1
Revert to using a single NSIndexPath for the pending visible item
2015-06-24 13:13:43 -07:00
Victor Mayorov
a299a5b550
Implemented UIAccessibilityIdentification for ASDisplayNode
2015-06-24 11:03:51 -07:00
Victor Mayorov
1a7723d0c6
Merge remote-tracking branch 'AsyncDisplayKit/master'
...
Conflicts:
AsyncDisplayKit/Details/ASRangeController.mm
AsyncDisplayKitTests/ASTableViewTests.m
2015-06-24 10:19:41 -07:00
Sebastian Rehnby
c215356eb3
Include missing files in iOS Framework target
2015-06-24 15:55:50 +02:00
Lukas Spieß
a918cb9d07
Make Source podspec work with use_frameworks! option
2015-06-24 13:49:26 +02:00
Paul Young
8fa6667d93
Remove old and add new framework target.
2015-06-23 23:24:55 -07:00
appleguy
8bdcbe1be0
Merge pull request #504 from RCacheaux/CollectionViewLayoutSupport
...
Custom layouts now allowed for ASCollectionView. Removes FlowLayout requirement.
2015-06-23 13:22:26 -07:00
Rene Cacheaux
0b8f10e488
Removes UICollectionViewFlowLayout requirement. This allows custom collection view layouts.
2015-06-23 13:39:12 -05:00
appleguy
e5f2f820c4
Merge pull request #449 from nrcmedia/master
...
Added iOS framework target for Carthage support
2015-06-23 10:51:23 -07:00
Andreas Linde
99a138cf00
Another documentation update
2015-06-23 19:33:11 +02:00
appleguy
247f960c44
Merge pull request #503 from RCacheaux/CollectionViewLayoutSupport
...
Create ASCollectionViewLayoutController capable of handling any type of UICollectionViewLayout.
2015-06-23 10:30:19 -07:00
Andreas Linde
1ef0461be4
Documentation fixes
2015-06-23 19:22:12 +02:00
Andreas Linde
40241ac953
Update podspecs for 3.7.0 release
2015-06-23 16:57:18 +02:00
Andreas Linde
6cd3cbcd42
Update podspecs for 3.7.0 release
2015-06-23 16:56:48 +02:00
Andreas Linde
5eb8975609
Show build status of master branch in readme
2015-06-23 16:44:27 +02:00
Andreas Linde
7f5e17cbd2
Increase build number
2015-06-23 16:31:20 +02:00
Andreas Linde
213b118f0f
Merge branch 'release/3.7.0'
2015-06-23 16:30:37 +02:00
Andreas Linde
15d62cedf5
Merge tag '3.7.0' into develop
...
Version 3.7.0
2015-06-23 16:30:37 +02:00
Andreas Linde
b66fbcff58
More 3.7.0 release and documentation updates
2015-06-23 16:13:02 +02:00
Andreas Linde
46f0560c1f
Ignore deprecation warning with Xcode 7
...
This is in our own delegate, so it is safe to turn this on without fear ;)
2015-06-23 15:09:12 +02:00
Rene Cacheaux
60e676a38a
Adds ASCollectionViewLayoutController and convenience CGRect/ASScrollDirection functions. Fixes default collection view range tuning parameters for Preload and Render ranges; values were flipped.
2015-06-23 07:30:13 -05:00
Andreas Linde
c3e5762d73
3.7.0 release and documentation updates
2015-06-23 14:27:30 +02:00
Andreas Linde
640cdbef3f
Merge pull request #175 from bitstadium/feature/background-upload-crash-reports
...
Send crash reports via NSURLSession when available
2015-06-23 11:09:13 +02:00
Andreas Linde
422235caec
Fix iOS 7.1 unit test and make upload more robust
2015-06-23 10:59:22 +02:00
Andreas Linde
3094c0524c
Send crash reports via NSURLSession when available
2015-06-23 10:12:13 +02:00
Andreas Linde
5305474388
Fix libpng warnings
2015-06-23 09:09:00 +02:00
appleguy
179d8601e0
Merge pull request #497 from RCacheaux/CollectionViewLayoutSupport
...
Adds abstract ASLayoutController, consolidating shared behaviors
2015-06-22 21:50:52 -07:00
Peter
d44354d26e
Defer
2015-06-23 04:03:44 +03:00
Andreas Linde
a165480450
Merge pull request #174 from bitstadium/feature/cpp-stack-trace
...
Provide proper stack trace for C++ crashes
2015-06-22 22:01:28 +02:00
Peter
724d79a076
no message
2015-06-22 21:17:15 +03:00
Gwynne Raskind
4bc9d45c45
Remove meaningless namespace qualifier from throw override. Look up the Objective-C exception vtable dynamically (since weak import doesn't do what you think, even when it does). Remove useless debugging statements that were just causing trouble.
2015-06-22 19:15:16 +02:00
Andreas Linde
733eff9ac6
Make documentation build on travis
2015-06-22 10:22:42 +02:00
Andreas Linde
f0bdaca4e7
Fix travis setup with Xcode 6.3
2015-06-22 10:02:17 +02:00
Andreas Linde
38ae497224
Use Xcode 6.3 beta in travis
2015-06-22 09:43:10 +02:00
Andreas Linde
f6cb595f6e
Silence compiler warning since this is intended
2015-06-22 09:42:56 +02:00
Andreas Linde
0bbf72a033
Fix compiler warning in test case
2015-06-22 09:42:43 +02:00
Rene Cacheaux
4aa796d894
Merge branch 'master' into CollectionViewLayoutSupport
2015-06-21 23:17:41 -05:00
appleguy
607367aacf
Merge pull request #496 from facebook/DataControllerCrash
...
Improvements to thread safety during closely spaced edit events.
2015-06-21 21:16:05 -07:00
appleguy
edb6090ab0
Merge pull request #494 from RCacheaux/CollectionViewLayoutSupport
...
ASCollectionView scrollDirection and scrollableDirections
2015-06-21 21:10:14 -07:00
Scott Goodson
c700618862
Improvements to thread safety during closely spaced edit events.
...
This applies primarily when beginUpdates / endUpdates is not used.
Due to user interaction-driven edits, like reloads or adding content
at the bottom, sometimes this is unavoidable in app design and thus
critical.
I have a diff in flight to make ASDataController / ASRangeController
robust against very aggressive thrash testing, which will be added
both to the unit test suite and this new example project.
2015-06-21 21:04:09 -07:00
appleguy
84c81c289e
Merge pull request #495 from hannahmbanana/KittenComments
...
Cleaned up Kittens sample app and added comments for clarity.
2015-06-21 17:32:31 -07:00
Rene Cacheaux
777b48cc33
Adds layout controller for collection views. This new layout controller leverages UICollectionViewLayout's layoutAttributesForElementsInRect in order to calculate index paths for items in AsyncDisplayKit ranges. Flow layout is still a requirement in order to test the waters.
2015-06-21 18:37:00 -05:00
Hannah Troisi
710c51593e
Cleaned up Kittens sample app and added comments for clarity.
...
In particular, the NSValue-boxed CGSize array used as a data model for the kittens
is generated with random sizes, for unclear reasons. It turns out this is a workaround
to convince PlaceKitten to send us unique images.
2015-06-21 11:36:19 -07:00