closed #27
This commit is contained in:
@@ -71,6 +71,24 @@ enum Mood: Int {
|
||||
return Image("missing", bundle: .main)
|
||||
}
|
||||
}
|
||||
|
||||
var graphic: Image {
|
||||
switch self {
|
||||
|
||||
case .horrible:
|
||||
return Image("HorribleGraphic", bundle: .main)
|
||||
case .bad:
|
||||
return Image("BadGraphic", bundle: .main)
|
||||
case .average:
|
||||
return Image("AverageGraphic", bundle: .main)
|
||||
case .good:
|
||||
return Image("GoodGraphic", bundle: .main)
|
||||
case .great:
|
||||
return Image("GreatGraphic", bundle: .main)
|
||||
case .missing:
|
||||
return Image("MissingGraphic", bundle: .main)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension Mood: Identifiable {
|
||||
|
||||
Reference in New Issue
Block a user