I am also seeing a variety of this problem - the toolbar appears, but there's no content in the toolbar. Code is below but the TL;DR is the same as F99's response above, removing the Spacer() from the HStack fixes the problem
HStack {
TextField(store.prompt, text: $input)
.hideableToolbar(show: store.showToolbar) {
ToolbarItemGroup(placement: .keyboard) {
HStack {
ForEach(fastList) { item in
Button {
//
} label: {
Text("\(item.name)")
}
}
Spacer() // <–– COMMENTING OUT THIS LINE FIXES THE PROBLEM
}
}
}
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: