| 123456789101112131415161718192021222324252627282930 |
- import SwiftUI
- extension Home {
- struct RootView: BaseView {
- @EnvironmentObject var viewModel: ViewModel<Provider>
- var body: some View {
- VStack {
- Spacer()
- Button(action: viewModel.runOpenAPS) {
- Text("Run test")
- .frame(maxWidth: .infinity)
- .foregroundColor(.white)
- .buttonBackground()
- }
- Button(action: viewModel.makeProfiles) {
- Text("Make profiles")
- .frame(maxWidth: .infinity)
- .foregroundColor(.white)
- .buttonBackground()
- }
- Spacer()
- }
- .padding()
- .navigationTitle("Home")
- .navigationBarTitleDisplayMode(.automatic)
- }
- }
- }
|