Post

Replies

Boosts

Views

Activity

Reply to iOS16 change orientaion
In my ViewController even if I set: override var supportedInterfaceOrientations: UIInterfaceOrientationMask {   return .all } Still receive error: Error Domain=UISceneErrorDomain Code=101 "None of the requested orientations are supported by the view controller. Requested: landscapeLeft; Supported: portrait" UserInfo={NSLocalizedDescription=None of the requested orientations are supported by the view controller. Requested: landscapeLeft; Supported: portrait} When I call: setNeedsUpdateOfSupportedInterfaceOrientations() windowScene.requestGeometryUpdate(.iOS(interfaceOrientations: .landscapeLeft)) { error in    print(error)    print(windowScene.effectiveGeometry) } when supportedInterfaceOrientations return .LanscapeLeft, the orientation of the view is updated, but still receive the same error. Any help ?
Sep ’22