Closed VilemKurz closed 6 years ago
So this turned out as UIKit issue. I have tested it with a blank project where I created following UIViewController:
class ViewController: UIViewController {
@IBOutlet var textField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
textField.attributedText = NSAttributedString(
string: "apple",
attributes: [
.font: UIFont.systemFont(ofSize: 13),
.foregroundColor: UIColor.red
]
)
}
@IBAction func cancelEditing() {
textField.resignFirstResponder()
}
}
anyway I will try to come up with the workaround for Styles.
Steps to reproduce
bug behaviour: when you delete last character it is not deleted, app becomes unresponsive and app's memory comsumption grows very quickly.
expected behaviour: last character is deleted with no problems, app stays responsive.