I'm trying to use ARWorldTrackingConfiguration and ARBodyTrackingConfiguration together.
ARConfiguration here it says, a session can run only one configuration at a time.
So, I made two ViewControllers that switches each ViewController through buttons but I can't run the two ViewControllers at the same.
Is there any way to run two ViewControllers simultaneously or switching ViewControllers automatically?
Your app can only have a single ARSession running at a time, so if you have two live view controllers, each of which runs an ARSession, then you will receive an interruption on the ARSessionDelegate sessionWasInterrupted(_:) for one of the sessions.
If you only want the ARBodyTrackingConfiguration for 2D joint positions, then you can enable this on a world tracking configuration by setting the bodyDetection frame semantic. Otherwise, I recommend that you file an enhancement request using Feedback Assistant, to request the specific combination of features that you are looking for.