When you’ve created the Passport object by itself, it had no relationship/reference count
Make Memory Management Great Again
Bob Lee

Actually, it is 1. It is different in Swift and Obj-C, new object without strong references deallocates in the end of current scope in Swift and immediately in Obj-C

By the way, it is great question for iOS interviews.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.