Default the built-in presets to the corner layout

The built-in presets now use the corner layout, which still falls back
to stacked where it doesn't fit (iPhone, iPad portrait, narrow windows).
In the corner layout the landscape panels open visible unless the preset
says otherwise, on devices that can show it: iPad, macOS, and foldable
iPhones, whose hinge is now remembered once reported. Custom presets and
presets saved without panel settings keep the stacked layout.
This commit is contained in:
Arkadiusz Fal
2026-10-12 18:24:46 +02:00
parent 5026c094be
commit e71bb76f13
4 changed files with 72 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ extension LayoutPreset {
/// Bump this version whenever any built-in preset definition changes.
/// On launch, the app compares this against the last-applied version
/// and replaces stale built-in presets with fresh copies from code.
static let builtInPresetsVersion = 9
static let builtInPresetsVersion = 10
// MARK: - Built-in Preset IDs
@@ -132,7 +132,7 @@ extension LayoutPreset {
gesturesSettings: gesturesSettings,
playerPillSettings: playerPillSettings,
miniPlayerSettings: miniPlayerSettings,
panelSettings: .default
panelSettings: .builtInDefault
)
}
@@ -194,7 +194,7 @@ extension LayoutPreset {
gesturesSettings: nil,
playerPillSettings: nil,
miniPlayerSettings: MiniPlayerSettings(),
panelSettings: .default
panelSettings: .builtInDefault
)
}
@@ -288,7 +288,7 @@ extension LayoutPreset {
gesturesSettings: gesturesSettings,
playerPillSettings: playerPillSettings,
miniPlayerSettings: miniPlayerSettings,
panelSettings: .default
panelSettings: .builtInDefault
)
}
@@ -340,7 +340,7 @@ extension LayoutPreset {
gesturesSettings: nil,
playerPillSettings: nil,
miniPlayerSettings: MiniPlayerSettings(),
panelSettings: .default
panelSettings: .builtInDefault
)
}