Post

Replies

Boosts

Views

Activity

Reply to SwiftUI crash: AttributeGraph precondition failure
The above solutions didn't work for me, but I figured it out. I had a code that nests ForEach inside LazyVStack inside ScrollView inside NavigationView inside TabView. Quickly scrolling the list would result in: AttributeGraph precondition failure: setting value during update: 2232 Simple exchanging the order of NavigationView and TabView did not work for me. What I did was to add .id(UUID()) to each tab views: TabView {     MyView()         .id(UUID())         .tabItem { I didn't have to swap NavigationView and TabView nesting order. It worked!
Jan ’22