0 votes
in Swift by
How can we make a property Optional in swift?

1 Answer

0 votes
by
Declaring a Question mark “?” in the swift code can make a property optional. This question mark “?” helps to avoid the runtime error when a property doesn’t hold a value.
...