mirror of
https://github.com/yattee/yattee.git
synced 2025-11-24 18:28:20 +00:00
Restrict orientation locking to iPhone only
- Add device checks in Orientation enum to prevent locking on iPad - Hide "Lock portrait mode" setting on iPad in BrowsingSettings - Use Constants.isIPhone for consistent device detection
This commit is contained in:
@@ -185,7 +185,7 @@ struct BrowsingSettings: View {
|
||||
#if os(iOS)
|
||||
Toggle("Show Documents", isOn: $showDocuments)
|
||||
|
||||
if Constants.isIPad {
|
||||
if Constants.isIPhone {
|
||||
Toggle("Lock portrait mode", isOn: $lockPortraitWhenBrowsing)
|
||||
.onChange(of: lockPortraitWhenBrowsing) { lock in
|
||||
if lock {
|
||||
|
||||
Reference in New Issue
Block a user