Introduce StateStore with bindings example for Chat example.

This commit is contained in:
David Langley
2021-09-15 11:47:59 +01:00
parent 7ad3a001bd
commit f9e88680e2
8 changed files with 37 additions and 39 deletions
@@ -79,7 +79,7 @@ class TemplateUserProfileViewModel: TemplateUserProfileViewModelType, TemplateUs
/// - Parameters:
/// - state: The `inout` state to be modified,
/// - action: The action that defines which state modification should take place.
private static func reducer(state: inout TemplateUserProfileViewState, action: TemplateUserProfileStateAction) {
override class func reducer(state: inout TemplateUserProfileViewState, action: TemplateUserProfileStateAction) {
switch action {
case .updatePresence(let presence):
state.presence = presence