Sep 17, 2021
This may (or may not) bear on your question.
Effectively, a weak reference allows the object to go out of scope. When that happens, every weak reference to that object is zapped.
So weak references are not counted, but they are tracked.
This may (or may not) bear on your question.
Effectively, a weak reference allows the object to go out of scope. When that happens, every weak reference to that object is zapped.
So weak references are not counted, but they are tracked.
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.