How can a textField be resized based on content while using auto-layout in an iOS application written in Swift?
The text field will resize as necessary to fit its co
Swift 5
Simpler way:
textField.text = "hola" textField.frame.size.width = textField.intrinsicContentSize.width