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.