We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should there be way when using ForEvery (in SwiftIUi) to get index of element?
The text was updated successfully, but these errors were encountered:
It should be the same idea to get the indices to if you use SwiftUI ForEach I believe.
ForEach
ForEvery(people.indices, id: \.self) { index in // Do something }
Here is an article where we could make use of zip to create a sequence with index and data https://oleb.net/2020/foreach-enumerated/
zip
Sorry, something went wrong.
No branches or pull requests
Should there be way when using ForEvery (in SwiftIUi) to get index of element?
The text was updated successfully, but these errors were encountered: