I have the same issue as here: Resize a UITextField while typing (by using Autolayout)
But It was resolved with UITextView and not with UITextField.
This code doesn't help:
func textFieldDidChange(sender: UITextField) {
sender.invalidateIntrinsicContentSize()
}
I have UITextField(red background) and use AutoLayout with StackView:
and constraints:
but UITextField change it width only when it is resignFirstResponder.
Could you give me please any advice about the issue?
I'm new in Swift and iOS Development.

