From fd8d86dd6a09fed1293a30e9236ca4b658d06785 Mon Sep 17 00:00:00 2001 From: Cameron Ingham Date: Thu, 20 Jun 2024 13:38:24 -0700 Subject: [PATCH] [LOOP-4908] Bolus Status Banner UI Updates --- Loop/Views/BolusProgressTableViewCell.swift | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Loop/Views/BolusProgressTableViewCell.swift b/Loop/Views/BolusProgressTableViewCell.swift index 5f28ea779..3ac0af962 100644 --- a/Loop/Views/BolusProgressTableViewCell.swift +++ b/Loop/Views/BolusProgressTableViewCell.swift @@ -24,7 +24,7 @@ public class BolusProgressTableViewCell: UITableViewCell { @IBOutlet weak var activityIndicator: UIActivityIndicatorView! @IBOutlet weak var paddedView: UIView! - + @IBOutlet weak var progressIndicator: RingProgressView! @IBOutlet weak var progressLabel: UILabel! @IBOutlet weak var tapToStopLabel: UILabel! { @@ -39,18 +39,12 @@ public class BolusProgressTableViewCell: UITableViewCell { } } - @IBOutlet weak var progressIndicator: RingProgressView! - public var configuration: Configuration? { didSet { updateProgress() } } - private var doseTotalUnits: Double? - - private var disableUpdates: Bool = false - lazy var insulinFormatter: QuantityFormatter = { let formatter = QuantityFormatter(for: .internationalUnit()) formatter.numberFormatter.minimumFractionDigits = 2 @@ -145,9 +139,7 @@ public class BolusProgressTableViewCell: UITableViewCell { override public func prepareForReuse() { super.prepareForReuse() - disableUpdates = true configuration = nil - disableUpdates = false progressIndicator.progress = 0 CATransaction.flush() progressLabel.text = ""