Daily iOS
SwiftCapgeminiinterview report

How optional chaining behaves

When you chain several optional accesses like this and hit nil partway through, what happens?

let city = user?.address?.city

Submit