Skip to content

Instantly share code, notes, and snippets.

@arvindravi
Last active April 28, 2021 16:09
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 arvindravi/633e984ab587acb31230d4c1f75881ec to your computer and use it in GitHub Desktop.
Save arvindravi/633e984ab587acb31230d4c1f75881ec to your computer and use it in GitHub Desktop.
//
// ContentView.swift
// sunshine
//
// Created by Arvind Ravi on 28/04/2021.
//
import ComposableArchitecture
import SwiftUI
struct AppState {
}
enum AppAction {
}
struct AppEnvironment {
}
let reducer = Reducer<AppState, AppAction, AppEnvironment> { state, action, environment in
return .none
}
struct ContentView: View {
let store: Store<AppState, AppAction>
var body: some View {
WithViewStore(store) { viewStore in
EmptyView()
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView(
store: .init(
initialState: .init(),
reducer: reducer,
environment: AppEnvironment())
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment