Maybe I have a wrong understanding of Planes.
As I understanding a plane can be any flat surface. By setting
configuration.planeDetection = .horizontal
I enabled plane Detection. This means if I move my camera closer to a flat surface like wood table or floor then that will be counted as detecting a plane and this will trigger the following method.
func session(_ session: ARSession, didAdd anchors: [ARAnchor]) {
print("plane detected")
}
The above method is never fired unless I point my camera to other SCNNodes on the screen. This is triggers and wipes out all the nodes from the scene. Am I missing something or understanding planes wrong.