Michael Long
Dec 12, 2024

--

In ComputedStateViewModel, if load() ever has an error then the error view is displayed.

But if the user hits reload to try again, then the load function setup never clears the error.

So even if the reload succeeds, an error message will still be shown as it's the first check.

As Doc Brown keeps telling Marty in Back to the Future, you have to think 4th dimensionally.

Don't tell anyone.... ;)

--

--

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