My code works when my code makes etc: 2 + 2 But my app shut down when my code makes ex: 2+2+ .
I tried to do - catch code block and many error handling. I can't solve the problem.
let islem: String = screenTextfield.text!
let exp: NSExpression = NSExpression(format: islem)
if let result: Double = exp.expressionValue(with: nil, context: nil) as? Double{
islemLabel.text = String(result)
}