How does the composable architecture play with the VisionOS ECS architecture? #2360
Replies: 1 comment 1 reply
-
Hi @littlejohntj, Stephen and I personally have not spent any time with VisionOS yet, though we hope to at some point. And hopefully the community can weigh in on this discussion too. All I can say is that during this exploratory moment of seeing how to use TCA in VisionOS I highly caution against doing things such as introducing reference types to your TCA state, or sending actions with high frequency to a In our isowords project we do have TCA code that interacts with SceneKit, which is kinda like the predecessor to RealityKit, and that may give you some ideas how we interface between the two worlds. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Starting to go deep into VisionOS development and I would love to use TCA inside of my app but I'm not sure how to have it play nicely with the Entity Component System that Apple forces you into.
For example, if I want to have control within each frame, I need to initiate my logic within my System class. I can then use this context to query for my entities and then grab my components off of those. I could see making my Components reducers since you store state on these reducers but I'm not quite sure how I would access my store here. Especially since you don't even initialize the System object.
Any thoughts or recommendations?
Beta Was this translation helpful? Give feedback.
All reactions