K
K
Karetski2015-10-01 23:45:14
Swift
Karetski, 2015-10-01 23:45:14

What is the difference between var text: String and var text: String!?

What is the difference when declaring properties in Swift between:
var text: String
and
var text: String!
When they declare var text: String?- it's clear. It's Optional, and that's what ! a little unclear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-10-02
@Karetski

www.stackoverflow.com/a/24793853

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question