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 {
homeViewTwoSectionHeaderView(month: month, year: year)
Image(systemName: "square.and.arrow.up")
.foregroundColor(textColor)
.onTapGesture {
let impactMed = UIImpactFeedbackGenerator(style: .heavy)
impactMed.impactOccurred()
let _image = shareViewImage(month: month, year: year, entries: entries).asImage(size: CGSize(width: 400, height: 260))
self.shareImage.showFuckingSheet = true
self.shareImage.fuckingWrappedShrable = _image
}
// Image(systemName: "square.and.arrow.up")
// .foregroundColor(textColor)
// .onTapGesture {
// let impactMed = UIImpactFeedbackGenerator(style: .heavy)
// impactMed.impactOccurred()
//
// let _image = shareViewImage(month: month, year: year, entries: entries).asImage(size: CGSize(width: 400, height: 260))
// self.shareImage.showFuckingSheet = true
// self.shareImage.fuckingWrappedShrable = _image
// }
}
Divider()
LazyVGrid(columns: columns, spacing: 15) {