I have this solution: How to lock orientation of one view controller to portrait mode only in Swift
It was working fine but now on iOS 13 it didn't work anymore.
I try this solution: Screen rotation glitch on iPadOS 13
But it doesn't fix it.
Can someone have a working solution for iPhone app in portrait but only one UIViewController in landscape?
Edit: I made a sample app, it is working fine with iOS 12.4.2 and iPhone 6. But my problem it isn't working with iOS 13.1.3 and iPhone X. => we.tl/t-I3Um0U43fV
Edit 2: Thanks to @donnywals, I success to keep my orientation as on iOS 12. I just need some help to clean the main screen during transition. The "TOP" label is 90px from top of superview. As you can see, the current portrait page is resized during the transition.
Anyone know how to avoid it?