I don't see anything that particularly stands out in the code you provided, but if I were to hazard a guess here, it might be a problem with LoginView or MainTabView. If you're creating a toolbar with the toolbar modifier, and you're mixing and matching IDs, you'll need to make sure each toolbar item has an ID on it:
MyView()
.toolbar {
ToolbarItem(id: "some-value") { ... }
ToolbarItem(id: "some-other-value") { ... }
ToolbarItem(id: "yet-another-value") { ... }
}
There's also an error regarding the contents of a Table, so you may need to look into that as well.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: