Swift Binding issues? #2304
-
Hi there! I'm currently trying to figure out TCA in SwiftUI and struggling with ViewBInding that does not work correctly. On simulator, the binding will not work at all. On actual de device it works MOST of the time. and on Canvas it runs just fine. I would really like to know what's wrong either way. I've also tried viewStore.bind() and that also did not seem to work. Here's my repo Views / reducers |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Please can you link to just the file (or view/reducer) with the issue in it. It's hard to find where the issue is as that project has quite a large directory structure. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @JarretHoving97, this project does not build due to this error:
However, I will say that this project is much too big to diagnose. It would be better if you can create a small sample project from scratch with the minimal number of pieces that demonstrates the problem. A benefit of doing that is along the way you might figure out the bug yourself. 🙂 |
Beta Was this translation helpful? Give feedback.
-
Okay.. So started removing every binding from the project and started at the rootView (thankfully) where I noticed I did some unnecessary binding. `struct RootView: View {
` Has been changed to: `struct RootView: View {
` @BindingState values for textfields gets updated as it should be. |
Beta Was this translation helpful? Give feedback.
Okay.. So started removing every binding from the project and started at the rootView (thankfully) where I noticed I did some unnecessary binding.
`struct RootView: View {
`
Has been changed to:
`struct RootView: View {