Michael Long
Jul 2, 2022

--

And SwiftUI allows for cool new formatting features in Text labels. Yeah, get that.

But the flip side is that I work in financial applications where, for example, the formatting may be dependent on the account type. On debit account we might want to show the amount as positive in the list even though the actual value is negative.

And it’s that kind of weird business logic stuff that we want in the view model so we can test it.

--

--

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