Michael Long
Feb 26, 2024

--

One way would be to use the WrappedViewState example with a recursive enum like...

indirect enum ReloadingState {

case reloading(ReloadingState, Progress)

case loaded(Data)

...

}

--

--

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