-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement - updated the DashboardView row appearance #361
Improvement - updated the DashboardView row appearance #361
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! an extra thing to do is delete the stale strings from Localizable.xcstrings
, because they no longer are used, and don't need to be translated
@@ -30,20 +30,24 @@ struct DashboardView: View { | |||
NavigationStack { | |||
List { | |||
ForEach(viewModel.searchedEvents) { event in | |||
VStack(alignment: .leading, spacing: 8) { | |||
VStack(alignment: .leading) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VStack(alignment: .leading) { | |
VStack(alignment: .leading, spacing: 4) { |
changing the spacing to 4, just cause personal preference when I was looking at it in the simulator
|
||
let vehicleName = viewModel.vehicles.first { $0.id == event.vehicleID }?.name | ||
if let vehicleName { | ||
Text("\(vehicleName) on \(event.date, formatter: self.eventDateFormat)", | ||
comment: "Maintenance list item for a vehicle on a date") | ||
Text("For: \(vehicleName)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding a comment here for accessibility when people are translating this it gives more context about that text
What it Does
DashboardView
#333How I Tested
For example:
Notes
Screenshot