Michael Long
Feb 20, 2024

--

A lot of those assignments come from not using associated types, requiring you to pair each and every state assignment with a variable assignment.

Why are you making another search API call if you already have "allRestaurants"?

For that matter, another state isn't needed. Pass .loaded(accounts) or .loaded(allAccounts) and the correct list of accounts is presented.

--

--

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.

Responses (1)