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 improper runtime warning for nested closures in GeometryReader #88

Conversation

ollieatkinson
Copy link
Contributor

Fix #87

Nested closures inside of GeometryReader were being incorrectly reported as runtime warnings because it passed an early isGeometryTrailingClosure check.

This resolves the issue by first checking the demangled symbol is not a closure before checking if we are in a geometry reader trailing closure.

Copy link
Member

@mbrandonw mbrandonw left a comment

Choose a reason for hiding this comment

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

Hi @ollieatkinson, thank you very much for this! I'm really glad you were able to get a test to show the problem, and the fix seems reasonable to me.

I pushed a few small clean ups, and once it goes green we will merge and release. 🙂

@mbrandonw mbrandonw merged commit 0fb2e78 into pointfreeco:main Jun 24, 2024
2 checks passed
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.

Runtime Warning: Geometry Proxy - Nested Closure
2 participants