how to minimize keyboard when done typing swift code example
Example: swift dismiss keyboard on return
extension UIViewController: UITextFieldDelegate{
public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
textField.resignFirstResponder()
return true;
}
}
override func viewDidLoad() {
super.viewDidLoad()
textField.delegate = self
}