This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
received action: | |
TCAuthAction.simpAuthAction( | |
TCSimpAuthAction.attemptAuth( | |
SimpUsername(asString: "7928xxxxx@taskcruncher.com"), | |
SimpPassword(asString: "xxxx") | |
) | |
) | |
(No state changes) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to use BaseState struct to share state between views in TCA architecture. | |
// https://forums.swift.org/t/best-practice-for-sharing-data-between-many-features/37696/4 | |
//This is a proof-of-concept only; it simply is an attempt to model how to get and set global shared state among different views in a TCA-style app. | |
import SwiftUI | |
import ComposableArchitecture | |
@dynamicMemberLookup | |
struct TCABaseState<State: Equatable>: Equatable{ |