appleguy
74b866e6ba
Merge pull request #1559 from garrettmoon/upstream-GIF-Cleanup
...
[ASImageNode] Follow up to animated GIF PR
2016-04-19 16:43:49 -07:00
Michael Schneider
68de6a6391
Fix "[NSProxy methodSignatureForSelector:] called!" crash
2016-04-19 15:06:00 -07:00
Garrett Moon
0fc39d1ccd
Follow up to animated GIF PR
2016-04-19 13:43:41 -07:00
appleguy
322d85e738
Merge pull request #1511 from maicki/ASLayoutSpecOptimizations
...
[ASLayoutSpec] Improvements for ASLayoutSpec's internal implementation of child / children properties.
2016-04-17 20:26:54 -07:00
appleguy
30a0c471ca
Merge pull request #1528 from ejensen/instancetype
...
[Refactoring] Replace id with instancetype in initializers
2016-04-16 20:53:41 -07:00
Michael Schneider
9fdce828c1
Small improvements for ASLayoutSpec
...
- Add nullable for returning children
- Store default child and children as properties
- Use vector for creating final children
2016-04-15 07:11:24 -07:00
Garrett Moon
755c5feaf8
Levi's comments
2016-04-13 14:23:02 -07:00
Garrett Moon
24c26014a7
Fix example builds
2016-04-13 14:23:02 -07:00
Garrett Moon
e9b57d9da4
Address comments and cleanup
2016-04-13 14:23:02 -07:00
Garrett Moon
1b316217ef
Downstream ASAnimatedImage
2016-04-13 14:23:02 -07:00
Garrett Moon
3bcbfb149d
Add support for animated GIFs
...
Summary:
Use NSData as key
Add chunking of files
Add support for Animated Images
This adds support for GIF playback in ASDK. It's not currently ready
for merging to public ASDK – for one the GIF decompression may make
more sense in PINRemoteImage.
Removed duration as it wasn't used
Make cover image lazily loaded
Differential Revision: https://phabricator.pinadmin.com/D82033
2016-04-13 14:23:02 -07:00
Eric Jensen
527397ba7e
Replace id with instancetype in initializers
2016-04-13 11:20:05 -07:00
Michael Schneider
2fade63f1b
Add handling layer backed accessibility elements within layer backed nodes
2016-04-11 12:59:04 -07:00
appleguy
7c4db3fbc1
Merge pull request #1477 from maicki/SmallContentBatchFetch
...
[ASBatchContext] Fix fetch call won't occur for content smaller than bounds unless user scrolls
2016-04-09 19:15:06 -07:00
Michael Schneider
6a147021bc
Move setting of accessibilityFrame into accessibleElements
...
- Calculate accessibilityFrame for accessibleElements already in accessibleElements method
- Remove asyncdisplaykit_node associated object as it's not needed anymore
2016-04-09 17:03:35 -07:00
Michael Schneider
1b7db082dd
Improve _ASDisplayViewAccessibility
...
- Add class method to create a UIAccessibilityElement from a ASDisplayNode
- Add function to iterate through a ASDisplayNode tree in bfs fashion
- Add assert for _accessibleElements in accessibilityElementAtIndex:
2016-04-09 16:07:30 -07:00
Michael Schneider
14ca529911
Moving accessibility related code to _ASDisplayViewAccessibility
2016-04-09 11:23:25 -07:00
Michael Schneider
3b91c22fdf
Recreate the accessibleElements if accessed
2016-04-09 11:23:25 -07:00
Michael Schneider
34df512eeb
Remove ASNodeValidForAccessibility
2016-04-09 11:23:25 -07:00
Michael Schneider
ef31c3abf0
Copy accessibilityIdentifier to UIAccessibilityElement if a node is assigned
2016-04-09 11:23:25 -07:00
Michael Schneider
4056bf9ef3
Return NO if node i not valid for accessibility
2016-04-09 11:23:25 -07:00
Michael Schneider
03a7c55d59
Add accessibility support for shouldRasterizeDescendants and layerBacked nodese
2016-04-09 11:23:25 -07:00
Michael Schneider
9c29d0efa8
Initial commit for improved accessibility support
2016-04-09 11:23:25 -07:00
Michael Schneider
18fe728230
Remove deprecation of completeBatchFetching:
2016-04-09 10:55:52 -07:00
Michael Schneider
f92e7d5a29
Move completeBatchFetching: to deprecated location in header
2016-04-09 10:55:52 -07:00
Michael Schneider
c25a252e1c
Fix fetch call won't occur for content smaller than bounds unless user scrolls
2016-04-09 10:55:52 -07:00
Scott Goodson
a9b02e8632
[ASDataController] Handle incorrect client code that returns a nil ASCellNode (assert, but use zero-size cell in production).
2016-04-06 21:34:06 -07:00
Michael Schneider
41eb1917e4
Fix setting ASEnvironmentStateExtensions values
2016-04-05 14:22:32 -07:00
appleguy
7662cb67c1
Merge pull request #1432 from maicki/ASDataControllerCrashOnDataSourceDealloc
...
[ASDataController] Refactor ASDataController layout nodes methods
2016-03-31 21:49:58 -07:00
Michael Schneider
20ee9bca8d
Rename ASEnvironmentStateCreate to ASEnvironmentStateMakeDefault
2016-03-31 20:43:20 -07:00
Michael Schneider
f46f5640ff
Add improvements
...
- Remove defaults for ASEnvironmentLayoutOptionsState and ASEnvironmentHierarchyState
- Add locking for ASEnvironmentLayoutExtensibilityForwarding
- Other smaller improvements
2016-03-31 20:43:20 -07:00
Michael Schneider
4e757f0969
General improvements
...
- Refactor naming of ASEnvironmentCollection to ASEnvironmentState
- Remove struct pointers
- Move ASEnvironmentStatePropagation to a enum class
- Move merge functions to pure functions
- Move ASLayoutOptionsForwarding and ASLayoutableExtensibility into ASLayoutSpec and ASDisplayNode
- Remove ASLayoutableSetValuesForLayoutable and move into explicit classes (ASDisplayNode, ASTextNode)
2016-03-31 20:43:20 -07:00
Michael Schneider
65b4961802
Add extensibility support for ASEnvironmentLayoutOptionsState
2016-03-31 20:43:20 -07:00
Michael Schneider
96df35e41a
Initial commit for ASEnvironment
2016-03-31 20:43:20 -07:00
Scott Goodson
3e2414da6f
[ASInterfaceState] Fix for an edge case of exiting Visible state before node deallocation.
2016-03-27 18:15:40 -07:00
Michael Schneider
c6f00b1541
Use batchCount for indexes passed into internal layout nodes method and NSMaxRange
2016-03-27 17:54:40 -07:00
Michael Schneider
0284e55359
Add explicit range parameter for internal layout nodes method and better documentation
2016-03-27 17:48:17 -07:00
Michael Schneider
552b79deaa
Remove onMainThread: argument in internal layout nodes method
2016-03-27 17:48:17 -07:00
Michael Schneider
1f9e9b8483
Refactor ASDataController layout nodes methods
2016-03-27 17:48:17 -07:00
Eric Jensen
057ec55941
Correct documentation comments
2016-03-24 20:08:03 -07:00
Scott Goodson
eed812dcdf
[ASRangeController] Slight tweaks to the default Full ranges, for memory savings in multi-tabbed apps with still-excellent preloading consistency.
2016-03-23 23:36:59 -07:00
Scott Goodson
5b9302b681
Revert "Prevent deallocation of asyncDataSource and asyncDelegate in ASCollectionView and ASTableView"
...
This reverts commit 3668f45286a56a87d200aea0299caee9d2e4a880.
2016-03-22 14:38:50 -07:00
Scott Goodson
953c0f51f0
Revert "Move call of range update completion blocks to consider early returns in _updateVisibleNodeIndexPaths"
...
This reverts commit 41362fca3942b71cb092376e5baaa78652d1e19b.
2016-03-22 14:37:49 -07:00
Michael Schneider
41362fca39
Move call of range update completion blocks to consider early returns in _updateVisibleNodeIndexPaths
2016-03-22 12:43:09 -07:00
Michael Schneider
3668f45286
Prevent deallocation of asyncDataSource and asyncDelegate in ASCollectionView and ASTableView
...
Grab a strong reference for asyncDataSource and asyncDelegate in ASCollectionView and ASTableView before executing the range update to be sure they are not going away while executing the range update. This can happen in range updates while going back in the view controller hierarchy
2016-03-22 08:09:59 -07:00
Scott Goodson
8308a4ce49
[AsyncDisplayKit] Adopt #pragma once, remove last remaining dispatch_sync (UIScreen scale).
2016-03-19 19:56:41 -07:00
Hannah Troisi
f9a92366d3
[AsyncDisplayKit] Fix build so we can weak link AVFoundation
...
Unclear why the framework target required these seemingly unrelated changes to Collection
classes, but I modeled them after related files and it seems cleaner now (passes tests & framework target)
2016-03-19 17:54:02 -07:00
Eric Jensen
17aebcbaba
Add a space between the ? and : in ternarys
2016-03-17 10:38:51 -07:00
appleguy
d9ef0922d8
Merge pull request #1354 from ejensen/cleanup
...
[Refactoring] Objective-C 2.0 / Modern syntax for arrays, dictionaries, numbers; logic simplification
2016-03-17 01:06:33 -07:00
appleguy
2ad9d83520
Merge pull request #1353 from ejensen/spelling
...
[Documentation] Correct spelling errors
2016-03-16 22:53:15 -07:00