|
@@ -250,7 +250,7 @@ extension NCPlayer {
|
|
private func adjustLabelBottom(label: UILabel) {
|
|
private func adjustLabelBottom(label: UILabel) {
|
|
var bottomConstant: CGFloat = bottomConstantPortrait
|
|
var bottomConstant: CGFloat = bottomConstantPortrait
|
|
|
|
|
|
- switch UIApplication.shared.statusBarOrientation {
|
|
|
|
|
|
+ switch UIApplication.shared.windows.first?.windowScene?.interfaceOrientation {
|
|
case .portrait:
|
|
case .portrait:
|
|
bottomConstant = bottomConstantLandscape
|
|
bottomConstant = bottomConstantLandscape
|
|
case .landscapeLeft, .landscapeRight, .portraitUpsideDown:
|
|
case .landscapeLeft, .landscapeRight, .portraitUpsideDown:
|
|
@@ -319,7 +319,7 @@ extension NCPlayer {
|
|
|
|
|
|
var bottomConstant: CGFloat = bottomConstantPortrait
|
|
var bottomConstant: CGFloat = bottomConstantPortrait
|
|
|
|
|
|
- switch UIApplication.shared.statusBarOrientation {
|
|
|
|
|
|
+ switch UIApplication.shared.windows.first?.windowScene?.interfaceOrientation {
|
|
case .portrait, .portraitUpsideDown:
|
|
case .portrait, .portraitUpsideDown:
|
|
bottomConstant = bottomConstantLandscape
|
|
bottomConstant = bottomConstantLandscape
|
|
case .landscapeLeft, .landscapeRight:
|
|
case .landscapeLeft, .landscapeRight:
|