|
|
@@ -315,14 +315,16 @@ extension Home {
|
|
|
}
|
|
|
|
|
|
if let progress = state.bolusProgress {
|
|
|
- Text("Bolusing")
|
|
|
- .font(.system(size: 12, weight: .bold)).foregroundColor(.insulin)
|
|
|
- ProgressView(value: Double(progress))
|
|
|
- .progressViewStyle(BolusProgressViewStyle())
|
|
|
- .padding(.trailing, 8)
|
|
|
- .onTapGesture {
|
|
|
- state.cancelBolus()
|
|
|
- }
|
|
|
+ HStack {
|
|
|
+ Text("Bolusing")
|
|
|
+ .font(.system(size: 12, weight: .bold)).foregroundColor(.insulin)
|
|
|
+ ProgressView(value: Double(progress))
|
|
|
+ .progressViewStyle(BolusProgressViewStyle())
|
|
|
+ .padding(.trailing, 8)
|
|
|
+ }
|
|
|
+ .onTapGesture {
|
|
|
+ state.cancelBolus()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.frame(maxWidth: .infinity, maxHeight: 30)
|