Michael Long
May 10, 2024

--

EXCELLENT article, and one that I'd thought writing myself for awhile now.

There are several reasons to avoid unidirectional data flows, but input state machines add additional complexity that, as indicated here, can obscure the logic we're trying to understand.

For that matter, we're really only adding additional flows on top of the mechanism that Swift already provides.

Update state, and the view updates automatically.

--

--

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