Skip to content

masa7351/redux-like-state-container-in-swiftui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Series of posts about building Redux-like Single Source of Truth in SwiftUI.

This repository is for learning Redux.

Original Site

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.

Requirements

  • Swift5.1
  • Xcode 11.1
  • iOS 13.0

Snapshot

Changed

  • 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)

Using

About

Sample project for the series of posts about building Redux-like Single Source of Truth in SwiftUI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages