| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // UncertaintyRecoveredView.swift
- // OmniKit
- //
- // Created by Pete Schwamb on 8/25/20.
- // Copyright © 2021 LoopKit Authors. All rights reserved.
- //
- import SwiftUI
- import LoopKitUI
- struct UncertaintyRecoveredView: View {
- var appName: String
-
- var didFinish: (() -> Void)?
-
- var body: some View {
- GuidePage(content: {
- Text("\(self.appName) has recovered communication with the pod on your body.\n\nInsulin delivery records have been updated and should match what has actually been delivered.\n\nYou may continue to use \(self.appName) normally now.")
- .fixedSize(horizontal: false, vertical: true)
- .padding([.top, .bottom])
- }) {
- VStack {
- Button(action: {
- self.didFinish?()
- }) {
- Text(LocalizedString("Continue", comment: "Button title to continue"))
- .actionButtonStyle()
- .padding()
- }
- }
- }
- .navigationBarTitle(Text("Comms Recovered"), displayMode: .large)
- .navigationBarBackButtonHidden(true)
- }
- }
- struct UncertaintyRecoveredView_Previews: PreviewProvider {
- static var previews: some View {
- UncertaintyRecoveredView(appName: "Test App")
- }
- }
|