WIP - a lot of uncommitted work

This commit is contained in:
Trey t
2022-01-15 12:03:31 -06:00
parent 80690e4a8c
commit 64dd1855ac
31 changed files with 1024 additions and 154 deletions

View File

@@ -33,25 +33,42 @@ enum Mood: Int {
}
}
var color: Color {
switch self {
case .horrible:
return .red
case .bad:
return .orange
case .average:
return .blue
case .good:
return .yellow
case .great:
return .green
case .missing:
return Color(uiColor: UIColor.tertiarySystemBackground)
}
}
static var allValues: [Mood] {
return [Mood.horrible, Mood.bad, Mood.average, Mood.good, Mood.great]
}
var icon: Text {
var icon: Image {
switch self {
case .horrible:
return Text("😫")
return Image("horrible", bundle: .main)
case .bad:
return Text("🙁")
return Image("bad", bundle: .main)
case .average:
return Text("😐")
return Image("average", bundle: .main)
case .good:
return Text("🙂")
return Image("good", bundle: .main)
case .great:
return Text("😆")
return Image("great", bundle: .main)
case .missing:
return Text("🚫")
return Image("missing", bundle: .main)
}
}
}