Last active
April 28, 2021 16:09
-
-
Save arvindravi/633e984ab587acb31230d4c1f75881ec 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
// | |
// 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