|
@@ -22,21 +22,21 @@ struct AcknowledgementPendingView: View {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var body: some View {
|
|
var body: some View {
|
|
|
- GeometryReader { geometry in
|
|
|
|
|
|
|
+ Group {
|
|
|
VStack {
|
|
VStack {
|
|
|
if state.isMealBolusCombo {
|
|
if state.isMealBolusCombo {
|
|
|
ProgressView()
|
|
ProgressView()
|
|
|
- Text(state.mealBolusStep.rawValue)
|
|
|
|
|
|
|
+ Text(state.mealBolusStep.rawValue).multilineTextAlignment(.center)
|
|
|
} else if state.showCommsAnimation {
|
|
} else if state.showCommsAnimation {
|
|
|
ProgressView()
|
|
ProgressView()
|
|
|
Text("Processing…")
|
|
Text("Processing…")
|
|
|
} else if state.showAcknowledgmentBanner {
|
|
} else if state.showAcknowledgmentBanner {
|
|
|
statusIcon.padding()
|
|
statusIcon.padding()
|
|
|
- Text(state.acknowledgmentMessage)
|
|
|
|
|
|
|
+ Text(state.acknowledgmentMessage).multilineTextAlignment(.center)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.padding()
|
|
.padding()
|
|
|
- .frame(width: geometry.size.width, height: geometry.size.height)
|
|
|
|
|
|
|
+ .frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
|
}
|
|
}
|
|
|
.navigationBarBackButtonHidden(true)
|
|
.navigationBarBackButtonHidden(true)
|
|
|
.toolbar(.hidden)
|
|
.toolbar(.hidden)
|