Categories
ios swift

Value of optional type String? not unwrapped

I am just not able to unwrap else block. xCode gives me options to “Fix it with ! and ??”, which sadly does not fix the issue either.
I get this error in xCode:
Value of optional type ‘String?’ not unwrapped; did you mean to use ! or ??

 @IBAction func buttonTapped(theButton: UIButton) {
if answerField.text == "0" {
answerField.text = theButton.titleLabel?.text
} else {
answerField.text = answerField.text + theButton.titleLabel?.text
}