Ensure basalRateSchedule card is updated#555
Conversation
| private var basalRatesSection: Card { | ||
| card(for: .basalRate) { | ||
| if let schedule = viewModel.therapySettings.basalRateSchedule, | ||
| @State var basalRateSchedule = viewModel.therapySettings.basalRateSchedule // work-around for issue 2267 where basalRateSchedule doesn't update in the card |
There was a problem hiding this comment.
There was a problem hiding this comment.
Yes - I was aware, that’s why I explicitly commented that it’s a workaround (a proper fix would not need such a comment). I couldn’t find a reason why the current implementation stopped working correctly. If you have a cleaner way to fix then that’s better. Otherwise I preferred a benign workaround to the current buggy state.
|
I have tried different alternatives, but to no avail. I cannot replicate this now in the simulator but it does happen consistently on iPhone SE. It does not happen on iPhone 11 Pro, iOS 18.3.2 (and after upgrading also not on 18.4) |
TestBottom line - this PR is not a reliable fix. Configuration
|
|
@marionbarker I don’t think that change is relevant. Perhaps there is some difference in LoopKit or Loop project files? |
|
Close this PR. Refer to #558 as an alternative. |

This PR is in response to Loop Issue 2267: Basal Rate Therapy Settings do not update automatically after changes