Skip to content

Instantly share code, notes, and snippets.

@kovs705
Created February 12, 2024 09:12
Show Gist options
  • Save kovs705/8e762a08de6d45f65811a476ef352de5 to your computer and use it in GitHub Desktop.
Save kovs705/8e762a08de6d45f65811a476ef352de5 to your computer and use it in GitHub Desktop.
Composable Architecture reducer template
import Foundation
import ComposableArchitecture
struct Main: Reducer {
var body: some Reducer<Main.State, Main.Action> {
Reduce { state, action in
return .none}
}
enum Action: Equatable {
}
struct State: Equatable {
}
func reduce(into state: inout State, action: Action) -> Effect<Action> {
//
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment