for missing values show string "tap to add"

This commit is contained in:
Trey t
2022-01-29 11:27:11 -06:00
parent 2aa59a084a
commit 254c3b12d8
2 changed files with 2 additions and 1 deletions

View File

@@ -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)

View File

@@ -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";