Did you ever try to handle the event when you press intro and the keyboard dismiss in SwiftUI using TextField?
intro
keyboard
SwiftUI
TextField