Force reload from UserDefaults for Algorithm Experiments by marionbarker · Pull Request #2297 · LoopKit/Loop
Previous PR #2279 was accidentally merged while pointing to the main branch.
That PR referred to Issue #2267. However, Issue #2267 is actually fixed with LoopKit PR 555.
This PR properly points to the dev branch and makes the same code change as 2279.
This PR fixes an issue where the algorithm experiment settings displayed may be stale.
This is caused by the view being discarded from the render tree and then being restored as it was initialized.
This fix addresses this and cleans up the code as well by using AppStorage - the selection views themselves then only work with the Bindings and not directly with UserDefaults.