How to hide keyboard on tap outside of TextField in SwiftUI?
- SwiftUI on iOS 16
- Within a List a Section with a TextField
- I want to dismiss the keyboard if I tap outside the focused TextField.
- I thought, searched and found no solution the does this correctly. Either it does not dismiss in all cases or it does dismiss while clicking into the TextField, too.
What is the best or a good solution for this problem?