Every class instance is eventually destroyed. Swift gives you a way to know exactly when that happens — and the story of how it decides when to pull the trigger is surprisingly interesting. Here's something you've probably never thought about: what happens to your objects when you're done with ...

Source: [Dev.to](https://dev.to/gamya_m/swift-classes-deinitializers-and-how-swift-cleans-up-after-itself-mk3)

Sponsored