I am working with a custom types in swift and I am running into issues with optional chaining.
I expected person.address?. street to safely handle the case where address is nil but I am getting a runtime error.what am I doing wrong? How can I correctly use optional chaining in this situation?
New contributor
Riteek Kumar Prajapati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.