I had this error when loading data to drive a TabView in .onAppear. I put the load in a DispatchQueue.main.async {} wrapper and the error went away. Looks like it could be happening when structure driving the TabView is being updated when not on the UI thread.