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() { 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? {