I have a presented controller where:
modalPresentationStyle = .Custom
I need to use portrait interface orientation or disable rotation for this view controller at all. In such methods as:
supportedInterfaceOrientations(), shouldAutorotate()
I return needed values but they do nothing, the controller still rotates when presented. When I use some system default modalPresentationStyle than there is expected behavior.