Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the build warning in ASRangeController.mm #1575

Merged
merged 2 commits into from
Jul 11, 2019

Conversation

hanton
Copy link
Contributor

@hanton hanton commented Jul 10, 2019

Fix the following warning in the build process:

⚠️  /Texture/Source/Details/ASRangeController.mm:402:66: 'scrollableDirections' is deprecated: Use ASCollectionNode property instead. [-Wdeprecated-declarations]

@@ -399,7 +400,7 @@ - (void)_updateVisibleNodeIndexPaths
if (ASDisplayNode.shouldShowRangeDebugOverlay) {
ASScrollDirection scrollableDirections = ASScrollDirectionUp | ASScrollDirectionDown;
if ([_dataSource isKindOfClass:NSClassFromString(@"ASCollectionView")]) {
scrollableDirections = ((ASCollectionView *)_dataSource).scrollableDirections;
scrollableDirections = ((ASCollectionView *)_dataSource).collectionNode.scrollableDirections;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that we should fix this warning. However, given that this is a legitimate usage of the collection view's property, I don't think this is the best fix. Another way to fix it is simply importing ASCollectionView+Undeprecated.h. We have done this elsewhere in the framework.

@hanton hanton force-pushed the fix-build-warning branch from d9803ef to edfbec9 Compare July 11, 2019 02:08
@hanton
Copy link
Contributor Author

hanton commented Jul 11, 2019

hi @nguyenhuy , thanks for pointing this out, I've updated the commit :P

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're welcome. Thanks for fixing this!

@nguyenhuy nguyenhuy merged commit b7d64a0 into TextureGroup:master Jul 11, 2019
@hanton hanton deleted the fix-build-warning branch July 31, 2019 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants