|
|
@@ -133,24 +133,20 @@ extension Home {
|
|
|
cgmAvailable: state.cgmAvailable,
|
|
|
currentGlucoseTarget: state.currentGlucoseTarget,
|
|
|
glucoseColorScheme: state.glucoseColorScheme,
|
|
|
- glucose: state.latestTwoGlucoseValues,
|
|
|
- cgmProgress: state.cgmProgressHighlight,
|
|
|
- cgmStatus: state.cgmDisplayState,
|
|
|
- cgmSensorExpiresAt: state.cgmSensorExpiresAt,
|
|
|
- cgmWarmupEndsAt: state.cgmWarmupEndsAt
|
|
|
- )
|
|
|
- .onTapGesture {
|
|
|
- if !state.cgmAvailable {
|
|
|
- showCGMSelection.toggle()
|
|
|
- } else {
|
|
|
- state.shouldDisplayCGMSetupSheet.toggle()
|
|
|
+ glucose: state.latestTwoGlucoseValues
|
|
|
+ ).scaleEffect(0.9)
|
|
|
+ .onTapGesture {
|
|
|
+ if !state.cgmAvailable {
|
|
|
+ showCGMSelection.toggle()
|
|
|
+ } else {
|
|
|
+ state.shouldDisplayCGMSetupSheet.toggle()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .onLongPressGesture {
|
|
|
+ let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
|
|
|
+ impactHeavy.impactOccurred()
|
|
|
+ state.showModal(for: .snooze)
|
|
|
}
|
|
|
- }
|
|
|
- .onLongPressGesture {
|
|
|
- let impactHeavy = UIImpactFeedbackGenerator(style: .heavy)
|
|
|
- impactHeavy.impactOccurred()
|
|
|
- state.showModal(for: .snooze)
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
var pumpView: some View {
|