fix placement of share button on month detail view
fix color of share button move default icons into their own folder adding missing
6
Shared/Assets.xcassets/default_image/Contents.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
21
Shared/Assets.xcassets/default_image/missing.imageset/Contents.json
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "x-solid.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Shared/Assets.xcassets/default_image/missing.imageset/x-solid.png
vendored
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -75,9 +75,9 @@ final class EmojiMoodImages: MoodImagable {
|
||||
case .great:
|
||||
return Image(uiImage: "😀".textToImage()!)
|
||||
case .missing:
|
||||
return Image("missing", bundle: .main)
|
||||
return Image("x-solid", bundle: .main)
|
||||
case .placeholder:
|
||||
return Image("missing", bundle: .main)
|
||||
return Image("x-solid", bundle: .main)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -96,9 +96,9 @@ final class HandEmojiMoodImages: MoodImagable {
|
||||
case .great:
|
||||
return Image(uiImage: "🙏".textToImage()!)
|
||||
case .missing:
|
||||
return Image("missing", bundle: .main)
|
||||
return Image("x-solid", bundle: .main)
|
||||
case .placeholder:
|
||||
return Image("missing", bundle: .main)
|
||||
return Image("x-solid", bundle: .main)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ struct MonthDetailView: View {
|
||||
|
||||
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.foregroundColor(textColor)
|
||||
.padding(.trailing)
|
||||
.onTapGesture {
|
||||
let impactMed = UIImpactFeedbackGenerator(style: .heavy)
|
||||
|
||||
@@ -182,7 +182,7 @@ extension MonthView {
|
||||
homeViewTwoSectionHeaderView(month: month, year: year)
|
||||
|
||||
Image(systemName: "square.and.arrow.up")
|
||||
.padding([.trailing, .bottom])
|
||||
.foregroundColor(textColor)
|
||||
.onTapGesture {
|
||||
let impactMed = UIImpactFeedbackGenerator(style: .heavy)
|
||||
impactMed.impactOccurred()
|
||||
|
||||