From 6cd199e22c2753ae0096b74d2be0421ece3db5ec Mon Sep 17 00:00:00 2001 From: chanhihi Date: Mon, 1 Apr 2024 19:36:07 +0900 Subject: [PATCH 1/2] fix: change selectionStyle .gray --- iBox/Sources/BoxList/BoxListCell.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iBox/Sources/BoxList/BoxListCell.swift b/iBox/Sources/BoxList/BoxListCell.swift index a52416d..aedaf8d 100644 --- a/iBox/Sources/BoxList/BoxListCell.swift +++ b/iBox/Sources/BoxList/BoxListCell.swift @@ -68,7 +68,7 @@ class BoxListCell: UITableViewCell { private func setupProperty() { backgroundColor = .tableViewBackgroundColor - selectionStyle = .none + selectionStyle = .gray } private func setupHierarchy() { From 2ae0f368d315bcdf49085fbefbc530df988ee3af Mon Sep 17 00:00:00 2001 From: chanhihi Date: Mon, 1 Apr 2024 19:36:33 +0900 Subject: [PATCH 2/2] feat: didSelectRowAt after deslectRow --- iBox/Sources/BoxList/BoxListView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iBox/Sources/BoxList/BoxListView.swift b/iBox/Sources/BoxList/BoxListView.swift index 7b3c2cf..cd5b6e4 100644 --- a/iBox/Sources/BoxList/BoxListView.swift +++ b/iBox/Sources/BoxList/BoxListView.swift @@ -199,6 +199,8 @@ extension BoxListView: UITableViewDelegate { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard let cellViewModel = viewModel?.boxList[indexPath.section].boxListCellViewModelsWithStatus[indexPath.row] else { return } delegate?.didSelectWeb(id: cellViewModel.id, at: cellViewModel.url, withName: cellViewModel.name) + + tableView.deselectRow(at: indexPath, animated: true) } func tableView(_ tableView: UITableView, trailingSwipeActionsConfigurationForRowAt indexPath: IndexPath) -> UISwipeActionsConfiguration? {