diff --git a/ConversationsClassic/View/Main/Conversation/Attachments/MediaPicker/GalleryView.swift b/ConversationsClassic/View/Main/Conversation/Attachments/MediaPicker/GalleryView.swift index 1d7647b..d48fd52 100644 --- a/ConversationsClassic/View/Main/Conversation/Attachments/MediaPicker/GalleryView.swift +++ b/ConversationsClassic/View/Main/Conversation/Attachments/MediaPicker/GalleryView.swift @@ -70,32 +70,32 @@ private struct GridViewItem: View { } } } - // if isSelected { - // VStack { - // HStack { - // Spacer() - // Circle() - // .frame(width: 30, height: 30) - // .shadow(color: .black, radius: 2) - // .foregroundColor(.Material.Shape.white) - // .overlay { - // Image(systemName: "checkmark") - // .foregroundColor(.Material.Elements.active) - // .font(.body3) - // } - // .padding(4) - // } - // Spacer() - // } - // } + if isSelected { + VStack { + HStack { + Spacer() + Circle() + .frame(width: 30, height: 30) + .shadow(color: .black, radius: 2) + .foregroundColor(.Material.Shape.white) + .overlay { + Image(systemName: "checkmark") + .foregroundColor(.Material.Elements.active) + .font(.body3) + } + .padding(4) + } + 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 { ZStack { Rectangle()