Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can we make a property Optional in swift?
Home
Swift
How can we make a property Optional in swift?
0
votes
asked
Nov 8, 2022
in
Swift
by
SakshiSharma
How can we make a property Optional in swift?
swift-operation
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 8, 2022
by
SakshiSharma
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.
...