[Orientation] BUG IN CLIENT OF UIKIT: Setting UIDevice.orientation is not supported. Please use UIWindowScene.requestGeometryUpdate(_:)

Any suggestions?

Post not yet marked as solved Up vote post of Wang-Wenhao Down vote post of Wang-Wenhao
215 views

Replies

iOS16

I found the following problems with the new API:

  1. The previous several animations were abnormal
  2. If the return before supportedInterfaceOrientation does not support rotation direction, even if later modified return to support the direction of rotation, and then call requestGeometryUpdate, also returns the error, Rather than read supportedInterfaceOrientation first, determine whether to support and then returns the error
  3. Gravity sensing is also possible due to requestGeometryUpdate