Hey ;-),
my app supports the portrait mode at the moment. And I want to implement the landscape mode as well.
2 questions regarding device orientation detection:
What is the best way to detect the orientation of a device? A solution that is working on app launch too (not only on a rotation of the device)
At the moment I'm testing:
@Environment(\.verticalSizeClass) private var verticalSizeClass
But it seems that the devices I'm using for tests (simulators and a real device) do not support upside down mode. In the deployment info of my app I choose all 4 orientations (portrait, upside down, landscape left and right). Still the upside down does not redrawn the app and the orientation detected by "verticalSizeClass" says: compact
Is this a normal behavior (ignoring upside down mode) for all devices?
Thanks in advance,
Jackson