closed #27
This commit is contained in:
BIN
Shared/Assets.xcassets/AverageGraphic.imageset/AverageGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/AverageGraphic.imageset/AverageGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 208 KiB |
21
Shared/Assets.xcassets/AverageGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/AverageGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "AverageGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/BadGraphic.imageset/BadGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/BadGraphic.imageset/BadGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 207 KiB |
21
Shared/Assets.xcassets/BadGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/BadGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "BadGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
21
Shared/Assets.xcassets/GoodGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/GoodGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "GoodGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/GoodGraphic.imageset/GoodGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/GoodGraphic.imageset/GoodGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 210 KiB |
21
Shared/Assets.xcassets/GreatGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/GreatGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "GreatGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/GreatGraphic.imageset/GreatGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/GreatGraphic.imageset/GreatGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
21
Shared/Assets.xcassets/HorribleGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/HorribleGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "HorribleGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/HorribleGraphic.imageset/HorribleGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/HorribleGraphic.imageset/HorribleGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 212 KiB |
21
Shared/Assets.xcassets/MissingGraphic.imageset/Contents.json
vendored
Normal file
21
Shared/Assets.xcassets/MissingGraphic.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "MissingGraphic.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/MissingGraphic.imageset/MissingGraphic.png
vendored
Normal file
BIN
Shared/Assets.xcassets/MissingGraphic.imageset/MissingGraphic.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 236 KiB |
@@ -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 {
|
||||
|
||||
@@ -62,11 +62,6 @@ class PersistenceController {
|
||||
try! viewContext.setQueryGenerationFrom(.current)
|
||||
viewContext.refreshAllObjects()
|
||||
|
||||
let fakeRequest = NSFetchRequest<MoodEntry>(entityName: "MoodEntry")
|
||||
let fakeData = try! viewContext.fetch(fakeRequest)
|
||||
for item in fakeData {
|
||||
print(item.forDate!)
|
||||
}
|
||||
var includedDays16 = [Int16]()
|
||||
|
||||
if includedDays.isEmpty {
|
||||
|
||||
Reference in New Issue
Block a user