I have several UITextFields implemented in a UITableView for an entry form. When the first responder resigns for the first time , a strange jump in animation occurs. Since they are almost completely built in Interface Builder with a .xib file, I have almost no code to add. But here is a funny .gif that shows the behavior:

Update:
I narrowed it to the point that I listen to keyboard events to adjust view restrictions. This is the code causing the problem:
func keyboardWillHide(notification: NSNotification) { // tried self.formContainer.layoutIfNeeded() here too to force pending layouts formContainerYConstraint.constant = 40 UIView.animateWithDuration(0.4) { () -> Void in self.formContainer.layoutIfNeeded() } }
... where the form container is the view in which the button for viewing the table and entry is located.
ios uitextfield swift interface-builder
brandonscript
source share