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

[Binding] ForEach view #25

Open
4 tasks
chkn opened this issue Jun 6, 2020 · 0 comments
Open
4 tasks

[Binding] ForEach view #25

chkn opened this issue Jun 6, 2020 · 0 comments

Comments

@chkn
Copy link
Owner

chkn commented Jun 6, 2020

  • Bridge IList<> to Swift as RandomAccessCollection

  • Bind ForEach view. Now we can expose IList<> instead of RandomAccessCollection, but we might still need to bind and expose a couple other types, such as Range and the Identifiable protocol.

  • [C#] In the source generator, add support for emitting a ForEach view when a C# foreach statement is encountered in a ViewBuilder that enumerates an IList<>, or when a for statement is encountered stepping by 1 over integers. If it doesn't conform to those requirements, then a helpful diagnostic should be emitted.

  • [F#] The computation expression should implement the For method, restricting the first argument to types that implement IList<>. There doesn't appear to be a nice way to handle ranges. (depends on [F#] Create computation expressions for ViewBuilder #24)

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

No branches or pull requests

1 participant