diff --git a/Shared/Player/Controls/PlayerControls.swift b/Shared/Player/Controls/PlayerControls.swift index 62d6e1a1..64a68edf 100644 --- a/Shared/Player/Controls/PlayerControls.swift +++ b/Shared/Player/Controls/PlayerControls.swift @@ -333,7 +333,7 @@ struct PlayerControls: View { pipButton #if os(iOS) - if playerControlsLockOrientationEnabled { + if playerControlsLockOrientationEnabled, !Constants.isIPad { lockOrientationButton } #endif diff --git a/Shared/Player/Video Details/VideoActions.swift b/Shared/Player/Video Details/VideoActions.swift index 4175a1e1..48dd0fe1 100644 --- a/Shared/Player/Video Details/VideoActions.swift +++ b/Shared/Player/Video Details/VideoActions.swift @@ -71,7 +71,7 @@ struct VideoActions: View { return actionButtonPipEnabled #if os(iOS) case .lockOrientation: - return actionButtonLockOrientationEnabled + return actionButtonLockOrientationEnabled && !Constants.isIPad #endif case .restart: return actionButtonRestartEnabled @@ -158,7 +158,9 @@ struct VideoActions: View { actionButton("PiP", systemImage: player.pipImage, active: player.playingInPictureInPicture, action: player.togglePiPAction) #if os(iOS) case .lockOrientation: - actionButton("Lock", systemImage: player.lockOrientationImage, active: player.isOrientationLocked, action: player.lockOrientationAction) + if !Constants.isIPad { + actionButton("Lock", systemImage: player.lockOrientationImage, active: player.isOrientationLocked, action: player.lockOrientationAction) + } #endif case .restart: actionButton("Replay", systemImage: "backward.end.fill", action: player.replayAction) diff --git a/Shared/Settings/PlayerControlsSettings.swift b/Shared/Settings/PlayerControlsSettings.swift index b800acf6..ffbed612 100644 --- a/Shared/Settings/PlayerControlsSettings.swift +++ b/Shared/Settings/PlayerControlsSettings.swift @@ -366,7 +366,9 @@ struct PlayerControlsSettings: View { } Group { #if os(iOS) - Toggle("Lock orientation", isOn: $actionButtonLockOrientationEnabled) + if !Constants.isIPad { + Toggle("Lock orientation", isOn: $actionButtonLockOrientationEnabled) + } #endif Toggle("Restart", isOn: $actionButtonRestartEnabled) Toggle("Play next item", isOn: $actionButtonAdvanceToNextItemEnabled) @@ -378,7 +380,9 @@ struct PlayerControlsSettings: View { @ViewBuilder private var controlButtonToggles: some View { #if os(iOS) - Toggle("Lock orientation", isOn: $playerControlsLockOrientationEnabled) + if !Constants.isIPad { + Toggle("Lock orientation", isOn: $playerControlsLockOrientationEnabled) + } #endif Toggle("Settings", isOn: $playerControlsSettingsEnabled) #if !os(tvOS)