hn • r/hackernews
Comment on: SwiftUI After 7 Years
> For example, sync updates 100 items in a list changing their titles. Items are bound to a list in the UI. Thus, 100 unique title update events triggered.Those "updates" go in the queue. When the UI gets around to updating itself, it looks at the queue and invalidates all the UI elements that refer to the model items in the queue.It then updates those elements, using the coarsening to update larger elements in bulk if that becomes better.> Button clicked -> model change -> view update -> new event triggered -> model or view updated againOnce again, that is not allowed. View updates are not