[ASCollectionNode] Fix missing properties and layoutInspector #trivial #305
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi guys,
Some
ASCollectionView
properties have recently been deprecated in favour of theirASCollectionNode
counterparts, but it turns out that they're not fully functional yet:layoutInspector
from the_pendingState
is not forwarded to the view indidLoad
, which means that setting it only works after the view has been loaded, which kinda defeats the purpose of having the property at the node level.scrollDirection
andscrollableDirections
properties are not implemented, which means that we never get the actual value from the underlying view.These two problems are demonstrated in this sample project (along with a waterfall layout that could be useful to some Texture users :-)): https://github.com/flovouin/Texture-CollectionNodeProperties
The
layoutInspector
fix is rather straightforward. However concerning the property forwarding, I'm not entirely sure what the guidelines are. I just made sure not to load the view needlessly, but you might have a better way to do that. Please tell me and I'll update the PR ASAP if needed.Cheers,
Flo