New App - View State

When starting a new SwiftUI app, I like to have a reusable approach for managing the view state using generics.

In order to do that, we can use the following ViewState enum with the ViewStateWrapper struct:


A demonstration on how to use them can be found here.

New App - View State | manu.show
Tags: iOS
Share: Twitter LinkedIn