forked from shadowfacts/Tusker
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 {
|
||||
static var defaultValue: WidescreenNavigationMode { .splitScreen }
|
||||
static var defaultValue: WidescreenNavigationMode { .multiColumn }
|
||||
|
||||
static func shouldMigrate(oldValue: WidescreenNavigationMode) -> Bool {
|
||||
oldValue != .splitScreen
|
||||
}
|
||||
}
|
||||
|
||||
struct AttachmentBlurModeKey: MigratablePreferenceKey {
|
||||
|
|
|
@ -8,6 +8,5 @@
|
|||
import Foundation
|
||||
|
||||
public enum FeatureFlag: String, Codable {
|
||||
case iPadMultiColumn = "ipad-multi-column"
|
||||
case iPadBrowserNavigation = "ipad-browser-navigation"
|
||||
}
|
||||
|
|
|
@ -42,17 +42,15 @@ struct WidescreenNavigationPrefsView: View {
|
|||
Text("Split Screen")
|
||||
}
|
||||
|
||||
if preferences.hasFeatureFlag(.iPadMultiColumn) {
|
||||
Spacer(minLength: 32)
|
||||
Spacer(minLength: 32)
|
||||
|
||||
OptionView(
|
||||
content: MultiColumnNavigationPreview.self,
|
||||
value: .multiColumn,
|
||||
selection: $preferences.widescreenNavigationMode,
|
||||
startAnimation: startAnimationSignal
|
||||
) {
|
||||
Text("Multi-Column")
|
||||
}
|
||||
OptionView(
|
||||
content: MultiColumnNavigationPreview.self,
|
||||
value: .multiColumn,
|
||||
selection: $preferences.widescreenNavigationMode,
|
||||
startAnimation: startAnimationSignal
|
||||
) {
|
||||
Text("Multi-Column")
|
||||
}
|
||||
|
||||
Spacer()
|
||||
|
|
Loading…
Reference in New Issue