fix: resolve ambiguous toolbar(content:) in BusinessListView
Use explicit toolbar(content:) call instead of trailing closure to disambiguate the SwiftUI toolbar modifier overload. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9986937f66
commit
fe2ee59930
1 changed files with 2 additions and 2 deletions
|
|
@ -39,13 +39,13 @@ struct BusinessListView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle("Select Business")
|
.navigationTitle("Select Business")
|
||||||
.toolbar {
|
.toolbar(content: {
|
||||||
ToolbarItem(placement: .topBarTrailing) {
|
ToolbarItem(placement: .topBarTrailing) {
|
||||||
Button("Logout") {
|
Button("Logout") {
|
||||||
appState.logout()
|
appState.logout()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
}
|
}
|
||||||
.task {
|
.task {
|
||||||
await loadBusinesses()
|
await loadBusinesses()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue