Tokamak/Sources
Max Desiatov 2383a17c2d
Implement `StateObject` property wrapper (#260)
Resolves #158.

Fixes a bug where `NavigationView` destination was reset after scene phase changes (or any re-renders caused by environment changes for that matter).

This was caused by `@ObservedObject` destination being recreated, now `@StateObject` persists it across re-renders.

The `setter` property of the `ValueStorage` protocol is now moved to a separate `WritableValueStorage` protocol. The reasoning is that `StateObject` doesn't need its wrapped value to be set directly as it operates on it by reference, not by value, thus `StateObject` doesn't need any wrapped value setters.
2020-08-17 16:01:49 +01:00
..
CombineShim Make reconciler tests build and run on macOS (#229) 2020-07-30 16:48:09 +01:00
TokamakCore Implement `StateObject` property wrapper (#260) 2020-08-17 16:01:49 +01:00
TokamakDOM Implement `StateObject` property wrapper (#260) 2020-08-17 16:01:49 +01:00
TokamakDemo Add `GeometryReader` implementation (#239) 2020-08-11 16:47:12 +01:00
TokamakShim Add `TokamakShim` module to simplify imports (#192) 2020-07-19 20:53:27 +01:00
TokamakStaticDemo Add Static HTML Renderer and Documentation (#204) 2020-08-01 16:27:12 -04:00
TokamakStaticHTML Add `GeometryReader` implementation (#239) 2020-08-11 16:47:12 +01:00
TokamakTestRenderer Update to the latest version of SwiftFormat (#250) 2020-08-05 17:30:19 +01:00