Ever wondered how memory management works in Swift? Or what common pitfalls are? Take a dive into ARC and memory management in Swift with this tutorial.
Hi, this tutorial does not seem to work as described with XCode 10. I never tried it with previous versions. For starters when changing the Phone owner to a weak reference nothing gets deallocated. I tried with my own playground as well by downloading the playground at the end of the tutorial. Same problem even after making user unowned in CarrierSubscription.
If you get a chance, please check if you are seeing similar results or if I 'm missing something.