Does CMMotionManager report in the same way iPhone Duo orientation as with iPhone? What, when it is folded as a book/laptop?
Hello! This was answered in the Summary of the iPhone Duo Group Lab https://developer.apple.com/forums/thread/847644?answerId=906289022#906289022
How do I get device attitude oriented to what's displayed on screen?
To receive processed device-motion data, including the device's attitude, call startDeviceMotionUpdates(using:) on a CMMotionManager instance to begin receiving motion updates relative to a specified reference frame. Your view conforms to CMBodyIdentifiable, which lets you tell Core Motion which body — physical display — your app's UI currently occupies. Set the deviceMotionBody property on your motion manager instance to that view, and the system automatically transforms the sensor values to align with your UI's actual orientation, based on whether it's shown on the inner or outer display. Then, continue reading CMDeviceMotion.attitude as you always have. The values arrive already corrected for that body's current orientation — including which face is up — whenever your app is full screen on the display hosting your UI. If your scene isn't full screen, body-relative orientation isn't available, and you receive motion data in the device's default reference frame instead. To learn more, see Getting processed device-motion data and Sensor coordinate orientation.