Why Swift is introducing a warning for weak captures within nested closures
Swift 6.4 adds a compiler warning when a nested closure captures `self` weakly while the outer closure implicitly captures `self` strongly. The warning surfaces a hidden retain‑cycle caused by the outer closure’s implicit strong capture, and the article shows three ways to fix or silence it: move the weak capture to the outer closure, add a second weak capture inside the inner closure, or explici…
Swift by Sundellswiftbysundell.com3 min
