for missing values show string "tap to add"
This commit is contained in:
@@ -224,7 +224,7 @@ struct ContentView: View {
|
||||
}
|
||||
.multilineTextAlignment(.leading)
|
||||
|
||||
Text("\(entry.moodString)")
|
||||
Text(entry.moodValue == Mood.missing.rawValue ? String(localized: "mood_value_missing_tap_to_add") : "\(entry.moodString)")
|
||||
.font(.body)
|
||||
.foregroundColor(Color(UIColor.systemGray))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
@@ -62,3 +62,4 @@
|
||||
"mood_value_bad" = "Bad";
|
||||
"mood_value_horrible" = "Horrible";
|
||||
"mood_value_missing" = "Missing";
|
||||
"mood_value_missing_tap_to_add" = "Missing - Tap to add";
|
||||
|
||||
Reference in New Issue
Block a user