Answers for "code to dismiss keyboard in swiftui"

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 "code to dismiss keyboard in swiftui"

Code answers related to "Swift"

Browse Popular Code Answers by Language