display.text = newValue != nil ? \"\\(newValue!)\" : \" \"
Does the syntax of the code mean, let display.text = newValue, if it does not equal nil
it means that
if newValue == nil { display.text = " " } else { display.text = "(newValue!)" }
if newValue is not nil, display.text will be (newValue!).
if you want to show newValue's value,
you should write that
if newValue == nil { display.text = " " } else { display.text = "\(newValue!)" }