@@ -33,6 +33,7 @@ class GalleryViewController: UIViewController {
)
collection.contentInset = UIEdgeInsets(top: 0, left: gridInsets, bottom: 0, right: gridInsets)
collection.backgroundColor = .white
+ collection.delaysContentTouches = false
return collection
}()
@@ -35,4 +35,11 @@ class GalleryCell: UICollectionViewCell {
}
imageView.image = image
+
+ override var isSelected: Bool {
+ willSet {
+ contentView.backgroundColor = newValue ? DcColors.primary : .white
+ imageView.alpha = newValue ? 0.75 : 1.0
+ }