Enable iPad multi-column navigation by default
This commit is contained in:
parent
00c44c612f
commit
c43c951b92
|
@ -29,7 +29,11 @@ struct TrailingSwipeActionsKey: MigratablePreferenceKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct WidescreenNavigationModeKey: MigratablePreferenceKey {
|
struct WidescreenNavigationModeKey: MigratablePreferenceKey {
|
||||||
static var defaultValue: WidescreenNavigationMode { .splitScreen }
|
static var defaultValue: WidescreenNavigationMode { .multiColumn }
|
||||||
|
|
||||||
|
static func shouldMigrate(oldValue: WidescreenNavigationMode) -> Bool {
|
||||||
|
oldValue != .splitScreen
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct AttachmentBlurModeKey: MigratablePreferenceKey {
|
struct AttachmentBlurModeKey: MigratablePreferenceKey {
|
||||||
|
|
|
@ -8,6 +8,5 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public enum FeatureFlag: String, Codable {
|
public enum FeatureFlag: String, Codable {
|
||||||
case iPadMultiColumn = "ipad-multi-column"
|
|
||||||
case iPadBrowserNavigation = "ipad-browser-navigation"
|
case iPadBrowserNavigation = "ipad-browser-navigation"
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,6 @@ struct WidescreenNavigationPrefsView: View {
|
||||||
Text("Split Screen")
|
Text("Split Screen")
|
||||||
}
|
}
|
||||||
|
|
||||||
if preferences.hasFeatureFlag(.iPadMultiColumn) {
|
|
||||||
Spacer(minLength: 32)
|
Spacer(minLength: 32)
|
||||||
|
|
||||||
OptionView(
|
OptionView(
|
||||||
|
@ -53,7 +52,6 @@ struct WidescreenNavigationPrefsView: View {
|
||||||
) {
|
) {
|
||||||
Text("Multi-Column")
|
Text("Multi-Column")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Spacer()
|
Spacer()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue