fix placement of share button on month detail view

fix color of share button
move default icons into their own folder adding missing
This commit is contained in:
Trey t
2022-03-17 11:01:50 -05:00
parent 1257a6342e
commit ec58aae65b
16 changed files with 33 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

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

View File

@@ -51,6 +51,7 @@ struct MonthDetailView: View {
Image(systemName: "square.and.arrow.up")
.foregroundColor(textColor)
.padding(.trailing)
.onTapGesture {
let impactMed = UIImpactFeedbackGenerator(style: .heavy)

View File

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