take share out of month view b/c user can screenshot and crop

This commit is contained in:
Trey t
2022-03-29 22:08:50 -05:00
parent 879c87f014
commit 80d92e8d28

View File

@@ -187,16 +187,16 @@ extension MonthView {
HStack { HStack {
homeViewTwoSectionHeaderView(month: month, year: year) homeViewTwoSectionHeaderView(month: month, year: year)
Image(systemName: "square.and.arrow.up") // Image(systemName: "square.and.arrow.up")
.foregroundColor(textColor) // .foregroundColor(textColor)
.onTapGesture { // .onTapGesture {
let impactMed = UIImpactFeedbackGenerator(style: .heavy) // let impactMed = UIImpactFeedbackGenerator(style: .heavy)
impactMed.impactOccurred() // impactMed.impactOccurred()
//
let _image = shareViewImage(month: month, year: year, entries: entries).asImage(size: CGSize(width: 400, height: 260)) // let _image = shareViewImage(month: month, year: year, entries: entries).asImage(size: CGSize(width: 400, height: 260))
self.shareImage.showFuckingSheet = true // self.shareImage.showFuckingSheet = true
self.shareImage.fuckingWrappedShrable = _image // self.shareImage.fuckingWrappedShrable = _image
} // }
} }
Divider() Divider()
LazyVGrid(columns: columns, spacing: 15) { LazyVGrid(columns: columns, spacing: 15) {