I'm using: ARView, RealityFoundation
I am using the following source code to add boxes to ARView
But now it will draw boxes (mesh), my goal just want to draw bounding boxes (depicted in the following image)

I think to change ModelComponent(mesh: mesh, materials: [material]) => another data type, but I can't do it yet.
any of your answers are appreciated by me.
You can follow the apple documentation regarding "Scanning and Detecting 3D Objects".
Link: Apple Documentation
You can also follow this writing to have more detailed idea:
Bounding box to anchor