Reputation: 119
I was developing an app in which this error occurred so how to remove optional word from answer in swift 2?
Upvotes: 0
Views: 1115
Reputation: 1394
You have to unwrap it.
if let text = catAge.text { print(text) }
Upvotes: 3