From 7a801a484e23375f50cd345d20d88e95056837d2 Mon Sep 17 00:00:00 2001 From: Paul Plant Date: Sun, 5 Jun 2022 20:57:47 +0200 Subject: [PATCH] Update TreatmentsViewController.swift add a disclosure indicator to each cell row to indicate to the user that they can click to edit the treatment --- .../Treatments/TreatmentsViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xdrip/View Controllers/Treatments/TreatmentsViewController.swift b/xdrip/View Controllers/Treatments/TreatmentsViewController.swift index 8c70161d..e0c5b5e6 100644 --- a/xdrip/View Controllers/Treatments/TreatmentsViewController.swift +++ b/xdrip/View Controllers/Treatments/TreatmentsViewController.swift @@ -174,7 +174,13 @@ extension TreatmentsViewController: UITableViewDelegate, UITableViewDataSource { let treatment = treatmentCollection.getTreatment(dateIndex: indexPath.section, treatmentIndex: indexPath.row) cell.setupWithTreatment(treatment) - + + // clicking the cell will always open a new screen which allows the user to edit the treatment + cell.accessoryType = .disclosureIndicator + + // set color of disclosureIndicator to ConstantsUI.disclosureIndicatorColor + cell.accessoryView = DTCustomColoredAccessory(color: ConstantsUI.disclosureIndicatorColor) + return cell }