This repository is for learning Redux.
Single source of truth eliminates tons of bugs produced by creating multiple states across the app. The main idea here is describing the whole app state by using a single struct or composition of structs. A single state for the whole app makes it easier to debug and inspect.
- Redux-like state container in SwiftUI. Basics.
- Redux-like state container in SwiftUI. Best practices.
- Redux-like state container in SwiftUI. Container Views.
- Swift5.1
- Xcode 11.1
- iOS 13.0
![]() |
![]() |
- Add Search User
- Add Load Users Thumbnail (not using Redux)
- It is abailable to replace fetching API to loading from local json. ※1
※1 replace "fetchApi" to "fetchMock"
SceneDelegate.swift
let store = Store<AppState, AppAction>(initialState: appState, appReducer: appReducer, dependencies: fetchApi)