What is wrong with the iOS Keyboard toolbar in SwiftUI

SwiftUI Toolbar has a weird behavior when applied to items in a list, I created a gist to show it: https://gist.github.com/joni8a/bc021ef597cb6efa1ab0ca277d602478.

When applying the toolbar modifier to the detail view, it displays 3 buttons instead of one. If I apply the toolbar modifier to the list itself, it only gets displayed once. How can that be? How can I have a different toolbar modifier for each textfield?

Have a look at: https://stackoverflow.com/questions/70810791/what-is-wrong-with-the-ios-keyboard-toolbar-in-swiftui