diff --git a/Kiwix-iOS/Controller/Library/LibraryBooksController.swift b/Kiwix-iOS/Controller/Library/LibraryBooksController.swift
index b0f8252b..43e11365 100644
--- a/Kiwix-iOS/Controller/Library/LibraryBooksController.swift
+++ b/Kiwix-iOS/Controller/Library/LibraryBooksController.swift
@@ -203,6 +203,14 @@ class LibraryBooksController: CoreDataCollectionBaseController, UICollectionView
return header
}
+ // MARK: - UICollectionView Delegate
+
+ func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+ collectionView.deselectItem(at: indexPath, animated: true)
+ guard let cell = collectionView.cellForItem(at: indexPath) as? LibraryCollectionCell else {return}
+ didTapMoreButton(cell: cell)
+ }
+
// MARK: - UICollectionViewDelegateFlowLayout
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
diff --git a/Kiwix-iOS/Storyboard/Library.storyboard b/Kiwix-iOS/Storyboard/Library.storyboard
index 26bbd0ad..030dda1d 100644
--- a/Kiwix-iOS/Storyboard/Library.storyboard
+++ b/Kiwix-iOS/Storyboard/Library.storyboard
@@ -86,7 +86,6 @@
-
diff --git a/Kiwix-iOS/View/Cells.swift b/Kiwix-iOS/View/Cells.swift
index 369553ad..247018e3 100644
--- a/Kiwix-iOS/View/Cells.swift
+++ b/Kiwix-iOS/View/Cells.swift
@@ -187,6 +187,12 @@ class LibraryCollectionCell: UICollectionViewCell {
@IBOutlet weak var descriptionLabel: UILabel!
@IBOutlet weak var hasPicLabel: UILabel!
@IBOutlet weak var moreButton: UIButton!
+
+ override var isSelected: Bool {
+ didSet {
+ backgroundColor = isSelected ? UIColor(colorLiteralRed: 200/255, green: 220/255, blue: 1, alpha: 1) : UIColor.clear
+ }
+ }
}