UIApplication

extension UIApplication
  • Called on a textfield to dismiss the keyboard when the user taps the view. This allows us to scroll the view and then dismiss the keyboard automatically.

    Declaration

    Swift

    func endEditing()