public func textFieldDidEndEditing(_ textField: UITextField) { print("A") } public func textFieldDidEndEditing(_ textField: UITextField, reason: UITextField.DidEndEditingReason) { print("B") layoutIfNeeded() }