Suggested approach: Optional chaining makes our code concise because we can write multiple optional calls on one line but have execution skip over the line if any of the optionals are missing.
For bonus points, talk about this also works with things like try?
and as?
.
Estimated difficulty: Easy
Watch me answer this question in detail
See the full list of iOS interview questions
Link copied to your pasteboard.