mikaelacaron / Basic-Car-Maintenance

A basic app to track your car's maintenance. Open source for Hacktoberfest 2023. Beginners are welcome!
https://mikaelacaron.github.io/Basic-Car-Maintenance/documentation/basic_car_maintenance/
Apache License 2.0
214 stars 123 forks source link

IMPROVE - Empty `DashboardView` #286

Closed mikaelacaron closed 1 month ago

mikaelacaron commented 2 months ago

Describe the feature you want to improve

if viewModel.events.isEmpty {
Text("Add your first maintenance", comment: "Placeholder text for empty maintenance list prompting the user to add a maintenance event")
   // ...
}

[!NOTE] Leave the closure for AddVehicleView nil because this will be something that is going to be in a different PR (the actual functionality to add a vehicle is in the SettingsViewModel, and not accessible here), and I want that refactor in a different PR

Describe alternatives you've considered

ItsJakeMarcus commented 2 months ago

This looks like a fun one :)