Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

dismiss keyboard on tap outside swiftui

extension UIApplication {
    func endEditing() {
        sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) 
    }
}
 
PREVIOUS NEXT
Tagged: #dismiss #keyboard #tap #swiftui
ADD COMMENT
Topic
Name
9+2 =