Answers for "swift ui binding to dismiss navigation"

1

how to dismiss keyboard swiftui

#if canImport(UIKit)
extension View {
    func hideKeyboard() {
        UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
    }
}
#endif
Posted by: Guest on October-05-2020

Code answers related to "swift ui binding to dismiss navigation"

Code answers related to "Swift"

Browse Popular Code Answers by Language