Skip to content

Commit

Permalink
[LOOP-4908] Bolus Status Banner UI Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Camji55 committed Jun 20, 2024
1 parent 991f7a9 commit fd8d86d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Loop/Views/BolusProgressTableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand All @@ -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
Expand Down Expand Up @@ -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 = ""
Expand Down

0 comments on commit fd8d86d

Please sign in to comment.