Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active August 30, 2020 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/4c3c579d149ca62eb4f7914afab6c960 to your computer and use it in GitHub Desktop.
Save laevandus/4c3c579d149ca62eb4f7914afab6c960 to your computer and use it in GitHub Desktop.
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