Releases: fatbobman/ObservableDefaults
Releases · fatbobman/ObservableDefaults
0.6.1
0.5.1
0.5.0
0.4.0
Add Observed First Mode
You can enable this mode by setting the observeFirst parameter in the @ObservableDefaults
macro:
@ObservableDefaults(observeFirst: true)
When this mode is enabled, only properties explicitly marked with @DefaultsBacked
will be persisted to UserDefaults. All other properties will automatically have the @ObservableOnly
macro applied, making them observable but not persisted. Think of this as the inverse of the standard mode, focusing on observability while adding persistence capabilities to individual properties as needed.