Commit Graph
4532 Commits
Author SHA1 Message Date
appleguy de49e5ec17 Merge pull request #1337 from rahul-malik/rmalik-mem-fix
[ASDisplayNode] Transfer node ownership from renderQueue to displayingNodes queue before removing it.
2016-03-07 11:45:28 -08:00
Rahul Malik 5af8b78d78 Transfer node ownership from renderQueue to displayingNodes queue before removing
the node from the renderQueue.
2016-03-07 11:30:23 -08:00
Hannah Troisi d1e6a650f0 [ASImageNode] A ASImageNode debug feature showing pixel scaling amount
- shows a red text label overlay on bottom right hand corner of ASImageNodes with pixel scaling factor
- import AsyncDisplayKit+Debug.h and enable using [ASImageNode setEnableImageDebugOverlay]
2016-03-07 09:44:16 -08:00
appleguy 8c7305c47c Merge pull request #1331 from maicki/ASViewControllerExample
[Examples] Add a new example for ASViewController usage, including rotation and navigation.
2016-03-06 17:49:56 -08:00
appleguy 0c9ec66479 Merge pull request #1317 from rahul-malik/rmalik-run-loop
[ASDisplayNode] Run loop amortization: Scheduling of view creation / hierarchy assembly across run loops for gaps to handle touches
2016-03-06 13:46:58 -08:00
Michael Schneider d8eb589d34 Enable Sample scheme as shared in ASViewController example 2016-03-06 13:43:47 -08:00
Rahul Malik 62a39c49ea Break up scheduling of node rendering across various run loops 2016-03-06 12:33:31 -08:00
appleguy e56c3b03f2 Merge pull request #1332 from facebook/ASDataReload
[ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData.
2016-03-05 23:00:12 -08:00
Scott Goodson 8cfd951f42 [ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData. 2016-03-05 21:21:22 -08:00
Michael Schneider 562a2183b7 Update deployment target 2016-03-05 20:52:30 -08:00
appleguy 4c834685c8 Merge pull request #1329 from hannahmbanana/debugFeatures
[ASControlNode] A debug feature on ASControlNode to visualize tap-able areas
2016-03-05 20:52:25 -08:00
Scott Goodson c4f6c9035b [ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData. 2016-03-05 20:52:00 -08:00
Scott Goodson 6a32e5ccc0 [ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData. 2016-03-05 20:27:36 -08:00
Scott Goodson cc7ca4a08f [ASDataController] If app code issues edit commands before first reload, ignore them, as UIKit will call -reloadData. 2016-03-05 20:22:18 -08:00
Michael Schneider 397181538e Change header of main.m 2016-03-05 20:09:31 -08:00
Michael Schneider c4c4a92ac5 Add ASViewController example 2016-03-05 20:08:18 -08:00
appleguy 354ccf3e5f Merge pull request #1327 from samhsiung/fix_scrollable_directions
[ASCollectionView] scrollableDirections must account for alwaysBounce(Vertical | Horizontal)
2016-03-05 16:35:48 -08:00
appleguy a7f54ed042 Merge pull request #1328 from lkzhao/collectionView-sectionInset-fix
[ASCollectionView] Remove the dead code for section inset behavior & mark it as deprecated
2016-03-05 16:29:48 -08:00
Hannah Troisi 9d5fed280d A debug feature on ASControlNode to visualize tap-able areas (by adding a highlight overlay ASDisplayNode as a subnode) when addTarget:action:ControlEvent: is called. Uses hitTestSlop to get ASControlNode's UIEdgeInset and set the highlight overlay's frame to be the ASControlNode frame + edge insets. Disables clip to bounds on ASControlNode. Enabled by calling +[ASControlNode setEnableHitTestDebug:YES]; 2016-03-05 16:08:55 -08:00
Luke Zhao 03e84e20ac updated with deprecated message 2016-03-05 13:04:20 -08:00
Samuel Hsiung 85394f09b4 Account for alwaysBounce(Vertical|Horizontal) when calculating scrollable directions 2016-03-04 21:33:08 -08:00
appleguy 30463db034 Merge pull request #1326 from maicki/ASViewControllerFixContentInset
[ASViewController] Trigger measurement pass at viewWillAppear: to ensure implicit hierarchy operations complete in time for UIKit inset configuration.
2016-03-04 19:24:37 -08:00
Michael Schneider 15a789c719 Fix content inset problems if ASViewControllers root node has usesImplicitHierarchyManagement set to YES
There are content inset problems if a ASViewController is initialized with a root node (e.g a ASCollectionNode subclass) that has usesImplicitHierarchyManagement set to YES. The reason for that is that the subviews (e.g. the UICollectionView) of the ASViewController root node get's added to the view hierarchy in measureWithSizeRange: in ASDisplayNode.  measureWithSizeRange: of the root node is called in -viewWillLayoutSubviews in ASViewController. That is too late, so UIKit does not apply the automatic content inset to the UICollectionView anymore.
2016-03-04 19:22:09 -08:00
appleguy 0a76c7b5d2 Merge pull request #1301 from lkzhao/collectionView-sectionInset-fix
Remove cell constrainedSize adjustment with section insets in constrainedSizeForNode
2016-03-04 14:26:55 -08:00
appleguy 17078bc208 Merge pull request #1316 from levi/patch-7
Add direct implementation of endUpdatesAnimated to ASCollectionNode
2016-03-04 14:26:30 -08:00
appleguy 28e505e9bd Merge pull request #1324 from maicki/ASCollectionNodeInitializeWithFrame
Initialize the ASCollectionView with a given frame and not with CGRectZero by default
2016-03-04 14:25:50 -08:00
Michael Schneider d19a55f94c Initialize the ASCollectionView with a given frame and not with CGRectZero by default 2016-03-04 14:21:33 -08:00
Luke Zhao aa180c6f3b completely remove cell constrainedSize adjustment from section inset 2016-03-04 13:14:16 -08:00
Gareth Reese fb1c5e8ee6 Fixed an issue where the preview image could appear twice 2016-03-04 16:50:39 +00:00
Aaron Schubert 3b6ed98e5f Revert unnecessary spacing changes. Improve gating based on feedback. 2016-03-04 08:30:24 +00:00
appleguy b45d34a96d Merge pull request #1320 from facebook/ASVCFrame
[ASViewController] Call -[super loadView] in order to harvest frame v alue and apply it to node's view.
2016-03-03 18:09:39 -08:00
Scott Goodson 23cd4c2b1f Merge remote-tracking branch 'origin/ASVCFrame' into ASVCFrame
Conflicts:
	AsyncDisplayKit/ASViewController.m
2016-03-03 18:08:44 -08:00
Scott Goodson 2a5464356f [ASViewController] Call -[super loadView] in order to harvest frame value and apply it to node's view. 2016-03-03 18:07:47 -08:00
Scott Goodson 5687c651bc [ASViewController] Call -[super loadView] in order to harvest frame value and apply it to node's view. 2016-03-03 18:04:05 -08:00
appleguy 39786f0691 Merge pull request #1319 from nguyenhuy/async_layout_transition_fixes
Fix threadSafeBounds
2016-03-03 16:24:47 -08:00
Huy Nguyen caddd1d287 Fix threadSafeBounds
- Bounds change set directly to _ASDisplayLayer should also be saved to threadSafeBounds
- Remove overkill _usesDisplayView flag
2016-03-03 16:18:07 -08:00
appleguy 3b4118cc6e Merge pull request #1318 from nguyenhuy/async_layout_transition_fixes
Fix race conditions during async layout transition
2016-03-03 15:49:26 -08:00
Huy Nguyen 3b0b7fa888 More locks 2016-03-03 15:05:17 -08:00
Levi McCallum 79d593f344 Update header file 2016-03-03 15:00:29 -08:00
Levi McCallum 66133f7e98 Add direct implementation of endUpdatesAnimated to ASCollectionNode 2016-03-03 14:56:36 -08:00
appleguy 0d2fbdf19f Merge pull request #1313 from levi/patch-6
[ASDisplayNode] Transition API - Preserve usesImplicitHierarchyManagement when doing animations
2016-03-03 12:17:14 -08:00
appleguy 00719fbaf8 Merge pull request #1314 from nguyenhuy/async_layout_transition
Finish replacing bounds with threadSafeBounds in ASTextNode
2016-03-03 09:24:43 -08:00
Huy Nguyen 5154573ae7 Finish replacing bounds with threadSafeBounds in ASTextNode 2016-03-03 08:51:44 -08:00
Levi McCallum 4601cd5d1e Preserve usesImplicitHierarchyManagement when doing animations
Currently the flag was being reset to NO in all cases. It should ignore turning off the hierarchy management when the user has already enabled it.
2016-03-03 08:40:08 -08:00
Gareth Reese 195c651811 Fixed up the test app to do various video types 2016-03-03 15:04:42 +00:00
Gareth Reese f1ae1cad42 Added some logging for AVPlayerItem error conditions 2016-03-03 14:52:02 +00:00
Gareth Reese 57844cb94d Fixed an issue where the preview image wasn't resizing correctly when the video was playing 2016-03-03 13:39:47 +00:00
Gareth Reese 7c20ba0cdf HLS videos now repeat at the end fine 2016-03-03 13:34:38 +00:00
Gareth Reese 1eebe4d31a Fixed an issue where the preview image doesn't seem to scale with the video layout when you click on the item 2016-03-03 09:46:58 +00:00
appleguy f27ea719da Merge pull request #1312 from nguyenhuy/async_layout_transition
Follow-up on 1311
2016-03-03 00:35:47 -08:00