Last active
August 30, 2020 00:34
-
-
Save laevandus/4c3c579d149ca62eb4f7914afab6c960 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@EnvironmentObject var dependencyContainer: DependencyContainer | |
@StateObject var viewModel = ContentViewModel() | |
var body: some View { | |
VStack(alignment: .center) { | |
VStack(spacing: 32) { | |
Text(viewModel.refreshTimestamp) | |
Button(action: viewModel.refresh, label: { | |
Text("Refresh") | |
}) | |
} | |
Spacer() | |
BottomBarView(viewModel: BottomBarViewModel(entryStore: dependencyContainer.entryStore)) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment