Questions tagged [swift-composable-architecture]

For questions about PointFree's Swift Composable Architecture.

The Composable Architecture (TCA, for short) is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. It can be used in SwiftUI, UIKit, and more, and on any Apple platform (iOS, macOS, tvOS, and watchOS).

20 questions
0
votes
1 answer

TCA: 'onAppear' Action is triggered but changes are not shown on screen

I'm using the TCA for an SwiftUI application and I have this bug that the '.onAppear' action is not showing any changes on the screen. This happens in the simulator and also on the phone. The weird thing is that when I'm printing the changes of the…
baronfac
  • 348
  • 3
  • 9
0
votes
0 answers

'LoginError' is ambiguous for type lookup in this context

I'm working with Combine and composable architecture and not sure which is the root cause of the error I'm seeing. In my login module I'm getting the following error 'LoginError' is ambiguous for type lookup in this context public enum LoginAction:…
Robert
  • 809
  • 3
  • 10
  • 19
0
votes
0 answers

Using Child SwitchStore Views within a Parent's ForEachStore View

I'm facing an issue implementing The Swift Composable Architecture in which I have a list of IdentifiedArray rows within my AppState that holds RowState which holds an EnumRowState as part of it's state, to allow me to SwitchStore on it within a…
cohen72
  • 2,830
  • 29
  • 44
0
votes
1 answer

In TCA: How to extract from Effect when not in the reducer?

I have the results from a publisher in an Effect<[Int], Error> How do I assign that [Int] to a variable? Although I am able to get the results using this: case .reviewed: return environment.networkQuery.reviewed(pageCount:…
Mozahler
  • 4,958
  • 6
  • 36
  • 56
-1
votes
1 answer

How to add ad-hoc reducer to top-level var body some ReducerProtocol {Scope A, ScopeB, ScopeC}

In order to conform to the ReducerProtocol, a conforming Struct either implements reduce(into: action:) method or the var body: some ReducerProtocol computed property. How do I handle the situation where I want to add both to the top level Reducer…
Small Talk
  • 747
  • 1
  • 6
  • 15
1
2