mirror of
https://github.com/yattee/yattee.git
synced 2025-11-16 06:58:43 +00:00
Hide orientation lock controls on iPad
The orientation lock feature is not applicable on iPad devices, so the lock orientation button and settings are now hidden when running on iPad.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user