Signed-off-by: marinofaggiana <ios@nextcloud.com>
@@ -1606,8 +1606,8 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
cell.hideButtonShare(true)
}
- // Remove last separator
- if collectionView.numberOfItems(inSection: indexPath.section) == indexPath.row + 1 {
+ // Separator
+ if collectionView.numberOfItems(inSection: indexPath.section) == indexPath.row + 1 || isSearching {
cell.separator.isHidden = true
} else {
cell.separator.isHidden = false
@@ -161,6 +161,10 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
buttonShared.isHidden = status
+ func hideSeparator(_ status: Bool) {
+ separator.isHidden = status
+ }
+
func selectMode(_ status: Bool) {
if status {
imageItemLeftConstraint.constant = 45