Is there a way for the app not to crash if the user taps on 2 or more textFields without filling them in with numbers?
Could you show the code where you crash ?
And detail the crash scenario:
If so, use optional chaining:
Or maybe you try to convert to Int something that is not
textField!.text.
If so replace with
And detail the crash scenario:
leaving fields empty ?
entering text when number is expected ?
Code Block let text = textField!.text
If so, use optional chaining:
Code Block if let text = textField?.text ?? ""
Or maybe you try to convert to Int something that is not
textField!.text.
Code Block let value = Int(textField!.text!)
If so replace with
Code Block let value = Int(textField!.text!) ?? 0