The three challenges were:
- Using the locale of the users device to select the right currency,
- Changing the colour of the amount depending on the value,
- Splitting the list into a section for personal and a section for business.
For the last one, I originally tried making a seperate view that output a section with a name, which worked well, except for deleting and adding new items to the expenses list, that wouldn’t work. Instead of figuring out how to wire that all up properly (which would be good to know how to do by the way, but tonight is not the night to figure that out), I made a separate view of the ForEach and a boolean if using the array.contains() to check if the items array has a ‘Personal’ or ‘Business’ entry. Simple enough.