SwiftUI-Architectures icon indicating copy to clipboard operation
SwiftUI-Architectures copied to clipboard

SceneStorage, AppStorage,...

Open jonathanpiette opened this issue 3 years ago • 0 comments

Hi, what then would be the best way to manage @SceneStorage and @AppStorage in this architecture? I tried to put it in the viewModel but XCode doesn't seems to like it (Accessing a SceneStorage value outside of being installed on a View. This will always return the default value.), and putting it in the view make it difficult to have logic reacting on it.

Best regards

jonathanpiette avatar Oct 28 '22 13:10 jonathanpiette