Ruby prO
Ruby prO

Reputation: 119

in swift 2 how to remove optional word?

I was developing an app in which this error occurred so how to remove optional word from answer in swift 2?

enter image description here

Upvotes: 0

Views: 1115

Answers (1)

zurakach
zurakach

Reputation: 1394

You have to unwrap it.

if let text = catAge.text {
    print(text)
}

Upvotes: 3

Related Questions