Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/boscojwho/lazygridbugexample

Demo bug where alert on LazyVGrid item doesn't capture the correct data value using various APIs, and shows workaround.
https://github.com/boscojwho/lazygridbugexample

swiftui

Last synced: 12 minutes ago
JSON representation

Demo bug where alert on LazyVGrid item doesn't capture the correct data value using various APIs, and shows workaround.

Awesome Lists containing this project

README

        

Poking around a possible(?) bug in SwiftUI's LazyVGrid, where the `.alert` modifier captures incorrect data values, along with a workaround.

The main code is contained in `ContentView`.

For more info, see inline comments in code.