import SwiftUI extension Home { struct RootView: BaseView { @EnvironmentObject var viewModel: ViewModel 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) } } }