Answers

Question and Answer:

  Home  Swift Developer

⟩ Tell me how can you make a property optional in Swift?

Declaring a question mark “?” in the code can make a property optional.

If a property doesn’t hold a value, then this symbol “?” helps in avoiding the runtime errors.

 191 views

More Questions for you: