Commit Graph

  • af64f33ed7 Minor changes: remove unncessary imports and add a new line ad the end of ASInternalHelpers.h Huy Nguyen 2015-07-01 18:36:36 +07:00
  • 2a3753516a Fix naming convention: Rename ASLayout's "children" to "sublayouts". Huy Nguyen 2015-07-01 17:52:01 +07:00
  • 2149d44990 Fix naming convetion: - "Layout node" is changed to "layout spec". - Update tests. - Update Kittens sample. Huy Nguyen 2015-07-01 17:37:26 +07:00
  • eb5670032d ASDisplayNode flattens the ASLayout calculated from its layout spec and stores the result. This reduces memory footprint and gives -layout a performance gain. Huy Nguyen 2015-06-30 20:18:11 +07:00
  • 4799a9d206 Remove ASLayoutChild. ASLayout now has a position property defaults to (NAN, NAN). Huy Nguyen 2015-06-30 17:10:17 +07:00
  • 4963a88717 Propagate ASCellNode's clipsToBounds value to the __ASTableViewCell. This helps work around a bug we are seeing in some rare cases (selected background view overlaps other cells if size of ASCellNode has changed.) Ethan Nagel 2015-06-29 21:22:55 -07:00
  • 57465c7fd3 Overhaul ASDataController and extensively test ASTableView. Scott Goodson 2015-06-28 18:03:45 -07:00
  • e74823bbee Merge branch 'master' into layout_node Huy Nguyen 2015-06-28 23:47:09 +07:00
  • dd29a890df Still support -calculateLayoutThatFits: (and manual layout), for backward compatibility. Huy Nguyen 2015-06-28 20:22:40 +07:00
  • 8beae28b25 Merge pull request #506 from paulyoung/framework-target appleguy 2015-06-27 21:58:09 -07:00
  • a654d880c3 Merge pull request #525 from facebook/Domain2 appleguy 2015-06-27 12:11:35 -07:00
  • feba7f8ed1 Update the identifier that AsyncDisplayKit uses to label its internal queues (2/2). Scott Goodson 2015-06-27 12:10:04 -07:00
  • 447159f08a Merge pull request #524 from facebook/ASDK_Identifier_Domain appleguy 2015-06-27 12:08:28 -07:00
  • 8fc79b1d4c Update the identifier that AsyncDisplayKit uses to label its internal queues. Scott Goodson 2015-06-27 12:07:40 -07:00
  • 1563c5e577 Merge pull request #523 from facebook/DataControllerSerialization appleguy 2015-06-27 11:50:43 -07:00
  • dc19970fe8 Clean up organization and naming of methods internal to ASDataController. Scott Goodson 2015-06-27 11:48:55 -07:00
  • a1e14e71ed Merge pull request #522 from facebook/DataControllerAwesome appleguy 2015-06-27 11:08:18 -07:00
  • 06cfe68cbd Clean up ASDataController for readability & API naming consistency. Scott Goodson 2015-06-27 11:06:54 -07:00
  • 5889c7019e basic unit tests Jack Flintermann 2015-06-27 02:37:18 -04:00
  • 8a200078bd make ASEditableTextField properly subclass responder methods Jack Flintermann 2015-06-27 01:48:55 -04:00
  • 540eeec79b move UIresponder methods out of UIView bridging category Jack Flintermann 2015-06-27 01:48:28 -04:00
  • 0b14d42033 add UIResponder methods to ASDisplayNode Jack Flintermann 2015-06-25 16:36:32 -04:00
  • 7d464fb6b8 Merge branch 'master' into framework-target Paul Young 2015-06-26 23:31:43 +01:00
  • da4ae469d8 Merge pull request #514 from eanagel/astableview-programmatic-scrolling-fix-v3 appleguy 2015-06-26 13:18:54 -07:00
  • 585a70d72c Merge pull request #511 from stripe-internal/jack-fix-podspec appleguy 2015-06-26 13:09:07 -07:00
  • 95e787b226 Remove stack children type: - ASLayoutable requires mutable properties that are used when attached to a stack layout. - Thus, ASLayoutable objects (including ASDisplayNode) can be injected into stack layout directly. - ASStackLayoutNodeChild no longer needed. - Tests and Kitten sample updated. Huy Nguyen 2015-06-26 11:38:29 +07:00
  • f588bceb4d Introduce ASLayoutable and eliminate ASCompositeNode: - Both ASDisplayNode and ASLayoutNode conforms to this protocol. - ASDisplayNode can be embeded directly into layout graph. - Eliminate ASCompositeNode. - Fix ASStaticSizeDisplayNode not recpect min constrained size. - Updated tests. Huy Nguyen 2015-06-26 08:41:51 +07:00
  • ae523f4fce better logic for detecting when the pending index path is before or after the visible index paths Ethan Nagel 2015-06-25 09:53:36 -07:00
  • 6bf8ec5b03 exclude ASDealloc2MainObject.h from main spec Jack Flintermann 2015-06-25 10:47:10 -04:00
  • 697b9f4c3c Update Kittens example to work with the improved layout system. Huy Nguyen 2015-06-25 11:24:28 +07:00
  • 99fe79339d Simplify ASDimension: - ASRelativeSize and ASRelativeSizeRange are used only by ASStaticLayoutNode. They are declared in a standalone header. - ASDimension contains a minimal set of new size types required to use the common layouts. Thus minimize the learning curve. Huy Nguyen 2015-06-25 11:07:01 +07:00
  • 259bbf22bc Fix naming conventions on equal and resolve methods of new size types. Huy Nguyen 2015-06-25 10:53:00 +07:00
  • 93564899fd Remove Auto size type. Huy Nguyen 2015-06-25 07:23:01 +07:00
  • 65aa677afc ASDisplayNodeCAssertPositiveReal and ASDisplayNodeCAssertInfOrPositiveReal permit CGFLOAT_MAX. Huy Nguyen 2015-06-24 21:18:20 +07:00
  • 810bc3ab84 Rename ASLayoutNode's -computeLayoutThatFits to -calculateLayoutThatFits. Huy Nguyen 2015-06-24 21:08:03 +07:00
  • 4ad64b2841 Update tests. Huy Nguyen 2015-06-23 18:47:50 +07:00
  • 64e2323a4e Remove ASLayoutNodeSize: - ASLayoutNode no longer has 'size' constraint during its initialization.. - ASLayoutNode no longer needs parentSize to calculate its layout. Huy Nguyen 2015-06-23 17:34:24 +07:00
  • 90a78684c9 Revert to using ASDisplayNodeSubclassOverridesSelector, to minimize changes and provide a bit of convenience within ASDisplayNode. Huy Nguyen 2015-06-06 08:28:12 +03:00
  • aea91fff86 Fix typo in ASDisplayNode. Huy Nguyen 2015-06-01 20:19:35 +03:00
  • 323136298c Update visibility of layout header files. Travis should be happy now. Huy Nguyen 2015-05-28 22:05:46 +03:00
  • 375f99eb66 Update Kittens sample to use new layout system. Huy Nguyen 2015-05-28 21:01:39 +03:00
  • e23a3fe4c2 Add layout tests. Huy Nguyen 2015-05-28 20:59:02 +03:00
  • 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. Huy Nguyen 2015-05-28 20:36:55 +03:00
  • 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. Huy Nguyen 2015-05-28 20:22:35 +03:00
  • 71d9f210f1 Merge pull request #507 from sebreh/master appleguy 2015-06-24 15:45:35 -07:00
  • 3560ff98e7 Merge pull request #508 from victormayorov/master appleguy 2015-06-24 15:45:09 -07:00
  • baf91b4a45 validate that _pendingVisibleIndexPath is contiguous with visibleIndexPaths before appending it. Also, always return a sorted array of NSIndexPaths Ethan Nagel 2015-06-24 13:18:12 -07:00
  • 0e37bff7c1 Revert to using a single NSIndexPath for the pending visible item Ethan Nagel 2015-06-24 13:13:43 -07:00
  • a299a5b550 Implemented UIAccessibilityIdentification for ASDisplayNode Victor Mayorov 2015-06-24 11:03:51 -07:00
  • 1a7723d0c6 Merge remote-tracking branch 'AsyncDisplayKit/master' Victor Mayorov 2015-06-24 10:19:41 -07:00
  • c215356eb3 Include missing files in iOS Framework target Sebastian Rehnby 2015-06-24 15:55:50 +02:00
  • 8fa6667d93 Remove old and add new framework target. Paul Young 2015-06-23 22:57:38 -07:00
  • 8bdcbe1be0 Merge pull request #504 from RCacheaux/CollectionViewLayoutSupport appleguy 2015-06-23 13:22:26 -07:00
  • 0b8f10e488 Removes UICollectionViewFlowLayout requirement. This allows custom collection view layouts. Rene Cacheaux 2015-06-23 13:39:12 -05:00
  • e5f2f820c4 Merge pull request #449 from nrcmedia/master appleguy 2015-06-23 10:51:23 -07:00
  • 247f960c44 Merge pull request #503 from RCacheaux/CollectionViewLayoutSupport appleguy 2015-06-23 10:30:19 -07:00
  • 60e676a38a Adds ASCollectionViewLayoutController and convenience CGRect/ASScrollDirection functions. Fixes default collection view range tuning parameters for Preload and Render ranges; values were flipped. Rene Cacheaux 2015-06-23 07:23:32 -05:00
  • 179d8601e0 Merge pull request #497 from RCacheaux/CollectionViewLayoutSupport appleguy 2015-06-22 21:50:52 -07:00
  • 4aa796d894 Merge branch 'master' into CollectionViewLayoutSupport Rene Cacheaux 2015-06-21 23:17:41 -05:00
  • 607367aacf Merge pull request #496 from facebook/DataControllerCrash appleguy 2015-06-21 21:16:05 -07:00
  • edb6090ab0 Merge pull request #494 from RCacheaux/CollectionViewLayoutSupport appleguy 2015-06-21 21:10:14 -07:00
  • c700618862 Improvements to thread safety during closely spaced edit events. Scott Goodson 2015-06-21 21:04:09 -07:00
  • 84c81c289e Merge pull request #495 from hannahmbanana/KittenComments appleguy 2015-06-21 17:32:31 -07:00
  • 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. Rene Cacheaux 2015-06-21 18:37:00 -05:00
  • 710c51593e Cleaned up Kittens sample app and added comments for clarity. Hannah Troisi 2015-06-21 11:36:19 -07:00
  • 0adac6851a Adds abstract ASLayoutController implementation in preparation for custom layout ASLayoutController implementation. Rene Cacheaux 2015-06-21 13:24:24 -05:00
  • 33118df73b Merge branch 'master' into CollectionViewLayoutSupport Rene Cacheaux 2015-06-21 11:45:56 -05:00
  • e46c13edc5 Exposes ASCollectionView's ability to determine scroll direction. Scroll direction detection can now support 2-axis collection view layouts. ASCollectionView can now determine scrollable axes. Rene Cacheaux 2015-06-21 11:45:25 -05:00
  • ed4ccfcc7f Merge pull request #491 from RCacheaux/CollectionViewLayoutSupport appleguy 2015-06-20 20:18:54 -07:00
  • c12cbdd21a Merge pull request #493 from facebook/LayerDrivenLayout appleguy 2015-06-20 20:16:13 -07:00
  • 904905189c Remove -[_ASDisplayView layoutSubviews] and use only -[_ASDisplayLayer layoutSublayers]. Scott Goodson 2015-06-20 19:40:01 -07:00
  • a7f7620b8c Turns ASScrollDirection into Option set in preparation for supporting 2-axis collection view layouts. Clears test host target warnings. Rene Cacheaux 2015-06-20 18:25:48 -05:00
  • c271462b16 Merge pull request #488 from facebook/CleanupFrameSetter appleguy 2015-06-19 17:36:17 -07:00
  • b94640a59d Merge remote-tracking branch 'AsyncDisplayKit/master' Victor Mayorov 2015-06-19 12:38:01 +03:00
  • 503b16fd62 Fixed crash on multiple -[ASTableView reloadData]. Implemented test. Victor Mayorov 2015-06-19 12:37:38 +03:00
  • b4aaf50953 Clean up login in setFrame: for clarity and compactness Scott Goodson 2015-06-18 13:16:35 -07:00
  • 590063f421 Merge pull request #485 from victormayorov/master appleguy 2015-06-18 13:05:24 -07:00
  • 0c7b1051d6 Fixed bounds Victor Mayorov 2015-06-15 18:35:32 +03:00
  • e94699ae31 Fixed bounds in ASDisplayNode. Bounds.origin shouldn't be affected by -[ASDisplayNode setFrame:] method. Victor Mayorov 2015-06-15 18:30:44 +03:00
  • 66e241162f Merge pull request #483 from facebook/podfileUpdates 1.2.1 appleguy 2015-06-14 20:09:57 -07:00
  • d8fcfce840 Update .podspec to refer to 1.2.1 release tag. Scott Goodson 2015-06-14 20:08:54 -07:00
  • 80cc0e64d0 Merge pull request #482 from facebook/DisableAsyncDataFetching appleguy 2015-06-14 20:01:56 -07:00
  • ba5a6e15c0 Disable asyncDataFetching in ASTableView and ASCollectionView init methods. It's currently unreliable for some use cases that issue editing calls while content is displayed or being interacted with. The performance gain is not sufficient to sacrifice correctness for the clients that hit this issue, so it will remain off until fully resolved. Scott Goodson 2015-06-14 19:59:39 -07:00
  • a4a03fdcf4 Merge pull request #481 from facebook/PrecompositingOpacity appleguy 2015-06-14 17:32:09 -07:00
  • c50f3b9cad Support transparent (e.g. clearColor) background for precomposited trees. Scott Goodson 2015-06-14 17:30:42 -07:00
  • 2a7f45ed40 Merge pull request #479 from joostvandijk/rasterized-node-offset appleguy 2015-06-13 17:35:55 -07:00
  • bd7941507b Use a zero origin for root container node frame during rasterization Joost van Dijk 2015-06-13 20:51:58 +02:00
  • 4ddd1f4ace Merge pull request #478 from victormayorov/master appleguy 2015-06-13 11:13:24 -07:00
  • 645b3c1e4a Added tests to project file VictorM 2015-06-11 10:47:13 +03:00
  • 2c74904368 Fixed crash with deallocated CGImageRef VictorM 2015-06-11 10:42:28 +03:00
  • c1f3ce2ba9 Merge pull request #476 from victormayorov/master appleguy 2015-06-10 16:52:16 -07:00
  • 9c20edb310 Added checking that sessionTask hasn't been added during creation of previous one Victor Mayorov 2015-06-10 17:58:35 +03:00
  • 7359e2255d Added synchronisation for sessionTask property Victor Mayorov 2015-06-10 17:50:21 +03:00
  • 1f5813b835 Fixed typo Victor Mayorov 2015-06-10 16:19:54 +03:00
  • 7167e4a589 Fixed ASBasicImageDownloader to handle multiple request with the same URL Victor Mayorov 2015-06-10 15:38:51 +03:00
  • b8f60e126a Added iOS framework target for Carthage support Niels van Hoorn 2015-05-11 18:50:56 +02:00
  • 6b62538327 Merge pull request #470 from 3lvis/master appleguy 2015-06-06 19:29:00 -07:00
  • 2bc0da021f Merge pull request #439 from eanagel/passthrough-nonlink-touches appleguy 2015-06-06 19:25:39 -07:00
  • fded84806b Merge pull request #464 from ianolito/lazy-pending-nodes-set appleguy 2015-06-06 19:23:59 -07:00
  • 33a496ffbf Fix broken Travis Elvis Nuñez 2015-06-01 20:34:24 +02:00