Is it possible to create a compass in VisionOS?

I am attempting to create a simple compass for Apple Vision Pro. The method I am familiar with involves using:

locationManager.startUpdatingHeading()
locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading)

However, this does not function on visionOS as 'CLHeading is unavailable in visionOS'.

Is there any way to develop this simple compass on visionOS?

There is no Magnetometer in AVP, no heading data is available. Hopefully, there are some algorithm can do so, but I do not know how.

Is it possible to create a compass in VisionOS?
 
 
Q