Skip to content
Discussion options

You must be logged in to vote

About your issue with the Store not updating, it is very easy to forget to pullback the combo reducer into its parent, as it will compile and will most likely not produce errors at runtime. You also don't need to use @ObservedObject in your Coodinator as it is not a View (it shouldn't cause any issue though). I would also check that state.selection = value after the guard in the reducer is hit.

When I'm using UI/NSViewRepresentable, I totally forget that I'll use them with TCA later, and I try to make them behave as vanilla SwiftUI views.

For NSComboBox, I would personally use a binding (you can even use generic values if you want), and use the Coordinator as a delegate like you did.

In o…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@kamcma
Comment options

Answer selected by kamcma
Comment options

You must be logged in to vote
1 reply
@kamcma
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants