This commit is contained in:
fmodf 2024-08-17 17:47:21 +02:00
parent b8dca34f84
commit 72d52f253f

View file

@ -70,32 +70,32 @@ private struct GridViewItem: View {
} }
} }
} }
// if isSelected { if isSelected {
// VStack { VStack {
// HStack { HStack {
// Spacer() Spacer()
// Circle() Circle()
// .frame(width: 30, height: 30) .frame(width: 30, height: 30)
// .shadow(color: .black, radius: 2) .shadow(color: .black, radius: 2)
// .foregroundColor(.Material.Shape.white) .foregroundColor(.Material.Shape.white)
// .overlay { .overlay {
// Image(systemName: "checkmark") Image(systemName: "checkmark")
// .foregroundColor(.Material.Elements.active) .foregroundColor(.Material.Elements.active)
// .font(.body3) .font(.body3)
// } }
// .padding(4) .padding(4)
// } }
// Spacer() Spacer()
// } }
// } }
}
.onTapGesture {
if isSelected {
selected.removeAll { $0 == item.id }
} else {
selected.append(item.id)
}
} }
// .onTapGesture {
// if isSelected {
// selected.append(item.id)
// } else {
// selected.removeAll { $0 == item.id }
// }
// }
} else { } else {
ZStack { ZStack {
Rectangle() Rectangle()