Interface Orientation doesn't work for LockedCameraCapture extension.

I'm developing LockedCameraCapture extension. My extension can capture photo, save to system photo library and load from system photo library. That's pretty nice extension.

I want to fix interface orientation to portrait for particular screen(capture screen). But I want some other screen to landscape orientation(photo viewing screen). So, I'm using "supportedInterfaceOrientations" property and "setNeedsUpdateOfSupportedInterfaceOrientations" method for interface orientation flexibility.

This code implies the screen only supports portrait orientation.

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
    .portrait
}

And I call this code to enable orientation setting.

// UIViewController # viewDidLoad
setNeedsUpdateOfSupportedInterfaceOrientations()

My App work as expected, but my CaptureExtension doesn't work. My extension's capture screen can rotate Landscape and that's not intended behavior.

I made Feedback. FB15550992

I enquired Apple the issue via Code-Level Support but they didn't answer, they just asked me to post to Developer Forums. But I've already done that.

It seems that Locked Camera Capture Extension doesn’t support interface orientation flexibility. I understand now the specification to prevent complex since it’s a Lock Screen feature. So, we should consider simple spec for our extension.

Interface Orientation doesn't work for LockedCameraCapture extension.
 
 
Q