Commit Graph

6 Commits

Author SHA1 Message Date
Riley Testut
2ead48ad40 [Features] Supports dynamic @Option values that may change over time
Uses @autoclosure to keep call site the same, but allows a single picker @Option to show different values depending on other factors (e.g. other @Options).
2023-04-28 15:42:11 -05:00
Riley Testut
6d95924145 [Features] Provides default picker view for @Options with pre-set values
To use, pass in a collection of values to `values` parameter in @Option initializer.
2023-04-14 18:10:55 -05:00
Riley Testut
240b74de94 [Features] Supports user-facing @Options with custom SwiftUI views
@Options with non-nil names will be exposed in Delta’s settings and can be configured by users via provided SwiftUI view.
2023-04-14 16:41:16 -05:00
Riley Testut
4d30ef2929 [Features] Supports @Feature-specific settings via @Option property wrapper 2023-04-14 16:17:31 -05:00
Riley Testut
415450a943 [Features] Adds UserDefaults+OptionValues to read/write arbitrary OptionValues 2023-04-14 15:38:19 -05:00
Riley Testut
d613cc9ad7 [Features] Adds @Feature property wrapper
Simplifies defining feature flags that can enabled + disabled via UserDefaults.
2023-04-13 16:20:54 -05:00