It seems like this may have been an issue for a while based on what I've seen, but I have added a toolbar item to a textfield keyboard and it doesn't show. The only way I can get it to show is by opening the keyboard, typing something, closing the keyboard, and then reopening it. Anyone have a workaround for this? It's like Apple purposely wants to make it difficult to close the keyboard.
TextField("Something here...", text: $text, axis: .vertical)
.multilineTextAlignment(.leading)
.toolbar {
ToolbarItemGroup(placement: .keyboard, content: {
Button("Close") { }
})
}