Post

Replies

Boosts

Views

Activity

How to make the Table cell editable
In the current version of the Garden app, when you add a new Plant, the variety is 'New Plant' and the days to maturity is zero. How can we change the code (and replacing the Text by TextField) to make these two fields for instance editable. My question comes from the fact that in the table, we use plants computed property that take all the plants from the garden, and the filter using the search text and sort them. How can we change that to have binding to plants and then use that in the table? Regards Vincent
2
0
1.2k
Jun ’21
SceneView new api in Big Sur: how to use it
I have discover that using SceneKit within Swift UI is now easier with the introduction of SceneView. However, I would like to be able to click on the SceneView to add Sphere for example. I would also like to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer. So my questions are: 1) How to get the position of a click since onTap gesture modifier does not provide any information about the location of the click. 2) How to use the hitTest, projectPoint and unprojectPoint define in SCNSceneRenderer since SceneView, contrary to SCNView, does not comply to SCNSceneRenderer protocol. Best regards Vincent LIEGEOIS
1
0
1k
Jun ’20