Category "swiftui-foreach"

View is not updated when the data is changed with ForEach

I want to change rate parameter and display in ForEach. // ViewModel.swift @MainActor final class ViewModel: ObservableObject { let serviceContainer: Servi

Same ForEach loop twice in one SwiftUI View

When I use a ForEach loop over an array twice within a view, I get the following warning at runtime:LazyVGridLayout: the ID 84308994-9D16-48D2-975E-DC40C5F9EFFF