mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-26 03:11:21 +01:00
Add SwiftUI + Redux
This commit is contained in:
14
Examples/SwiftUI + Redux/SwiftUIDemo/flux/reducers/Reducer.swift
Executable file
14
Examples/SwiftUI + Redux/SwiftUIDemo/flux/reducers/Reducer.swift
Executable file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Reducer.swift
|
||||
// SwiftUIDemo
|
||||
//
|
||||
// Created by Thomas Ricouard on 05/06/2019.
|
||||
// Copyright © 2019 Thomas Ricouarf. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
protocol Reducer {
|
||||
associatedtype StateType: FluxState
|
||||
func reduce(state: StateType, action: Action) -> StateType
|
||||
}
|
||||
Reference in New Issue
Block a user