Michael Long
Oct 30, 2024

--

Your image processing example is a tad confusing in that you pass a completion handler that accepts an optional image... that's not called when the weak self test fails.

That may have been the intent, but completion handlers usually want to be called. Expectations might have been different if UIImage was not optional.

--

--

Michael Long
Michael Long

Written by Michael Long

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.

No responses yet