Another video (episode 18) in the series of building an iOS SwiftUI fitness app in public is out and in this one i build out the Settings tab. It's interesting because there's not really much out there to guide the approach for this one. I've gone with a half way solution between making it simpler to implement and potentially losing some of the SwiftUIness of the implementation

Specifically I've gone rebuilding the whole settings item array when the user changes modes (dark/light) rather than flipping an actual property in a binding say. It's a trade off here between having something generic enough rather than treating each setting as something completely individual and handling it that way.

You can see the solution I came up with here: