I am running into this issue too. What I have found in my investigation so far is that it happens specifically when you use a toolbar that contains buttons, with a keyboard placement.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: