Hello
Is there a way to dismiss a decimal Keyboard by tapping (anywhere) on the screen (without putting .onTapGesture {hideKeyboard()} on the NavigationView)
Thank you
Is there a way to dismiss a decimal Keyboard by tapping (anywhere) on the screen (without putting .onTapGesture {hideKeyboard()} on the NavigationView)
Thank you
As far as I know, the answer is NO.Is there a way to dismiss a decimal Keyboard by tapping (anywhere) on the screen (without putting .onTapGesture {hideKeyboard()} on the NavigationView)
You need to write hideKeyboard() (I assume you know how to implement it) in onTapGesture or in some other action closure.
Hiding keyboard is a frustrating topic even in UIKit. You can send a feature request using Apples Feedback Assistant.