Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Dimillian/SwiftUIFlux
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimillian committed Jul 17, 2019
2 parents ebdaec4 + 0eb8223 commit 9e8c037
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct MoviesActions {

And then finally, you can dispatch them, if you look at the code of the reducer at the begining of this readme, you'll see how actions are reduced. The reducer is the only function where you are allowed to mutate your state.

As everything in the AppState are Swift `struct`, you actually return a new copy of your state, which is alligned with the Redux archutecture.
As everything in the AppState are Swift `struct`, you actually return a new copy of your state, which is aligned with the Redux achitecture.

``` Swift
struct MovieDetail : View {
Expand Down Expand Up @@ -168,4 +168,4 @@ struct MovieDetail : View {
}
}
}
```
```

0 comments on commit 9e8c037

Please sign in to comment.