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

ViewBuilder buildIf fix #162

Merged
merged 2 commits into from
Jul 6, 2020
Merged

ViewBuilder buildIf fix #162

merged 2 commits into from
Jul 6, 2020

Conversation

carson-katri
Copy link
Member

This allows Optional views to be rendered, fixing the buildIf function on ViewBuilder.

Ideally, type erasure would be unnecessary, but this causes a crash (see swiftwasm/swift#1379).

List implementation will be much simpler once this is resolved. Maybe we can merge this for now, then take out the AnyView stuff when the swift issue is resolved?

@carson-katri carson-katri added the bug Something isn't working label Jul 5, 2020
@carson-katri carson-katri requested a review from MaxDesiatov July 5, 2020 20:58
@carson-katri carson-katri requested a review from MaxDesiatov July 6, 2020 01:01
Copy link
Collaborator

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Thanks 🙏

@carson-katri carson-katri merged commit aedab8c into main Jul 6, 2020
@carson-katri carson-katri deleted the viewbuilder-hotfix branch July 6, 2020 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants