Swift: Using [weak self] as control flow: callbacks vs async/await
Instances of types in Swift, particularly when doing UI programming, are
sensitive to retain cycles: A holds on to B and B holds on to A —
they're both prevented from being freed. [weak self] to the rescue?
21 April 2024 · 516 words