Ideally we would have native iPad help, however that is a methods off and never possible for the time being. So for now we’ve got to work with iPad operating the iPhone app. Hybrid Swift and Goal-C utilizing UIKit, for context.
The app I am engaged on has a digital camera view controller that, previous to iPadOS 15, wouldn’t rotate the sphere of view between portrait and panorama. Nevertheless, with this new rotation conduct, the UI is proven in portrait when the iPad is in panorama. Within the case of the digital camera, the sphere of view is now flipped 90º. The captured photos usually are not flipped, however the sideways discipline of view is not a great look.
What I’ve tried/noticed to this point is the next:
This new rotation conduct isn’t ruled by the UIViewController’s rotation strategies. Overriding
supportedInterfaceOrientationsdoesn’t forestall this rotation. So that is occurring on the system stage, and never the view controller stage.
On the system stage, I solely know of 1 strategy to programmatically change orientation, utilizing the personal setter on UIDevice’s
orientationproperty. Clearly, personal APIs are a no-no for the App Retailer, and a hack to leverage them could break sooner or later. Not a great answer both.
At this level I am on the finish of my rope. I’ve scoured Google and StackOverflow to be taught extra about how this new characteristic works, at a technical stage, however particulars are sparse. If anybody has extra info or expertise with this, that might be nice. Even when the reply is ‘no cube’. Thanks!