Closed OmarHegazy93 closed 9 months ago
Closing now that Hacktoberfest is over, and I don't want to merge this solution right now. Thanks again for contributing! It's much appreciated! Feel free to pick up any issues even though Hacktoberfest is over
What it Does
To achieve this task, I had to make some refactoring for the app flow by:
AuthenticationViewModel
for almost all viewModels, as they all needed the UserID onlyUserDefaults
, as a next step we will need to figure out a better or safer way for saving itgetVehicles()
method default implemented as bothMainTabViewModel
andSettingsViewModel
are using it for fetching vehiclesFor the AppIntent itself:
MainTabViewModel
and if no vehicles available, then it will return an errorDistanceUnit
enum is used to make more readable for selecting Distance unitDistance
andDate
How I Tested
Happy scenario
Settings
tab >Add Vehicle
+
on the top right corner⨁ Add Action
Apps
tabBasic Car
Add Odometer Reading
Unhappy scenario
Settings
tab >Add Vehicle
+
on the top right corner⨁ Add Action
Apps
tabBasic Car
Add Odometer Reading
Notes
Screenshot