Answers for "keyboard dismiss on return swift"

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 "keyboard dismiss on return swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language