Gate navigation mode preference behind feature flag

This commit is contained in:
Shadowfacts 2023-09-09 10:57:56 -04:00
parent 232e3285ae
commit f448090c2a
2 changed files with 3 additions and 1 deletions

View File

@ -436,6 +436,7 @@ extension Preferences {
public enum FeatureFlag: String, Codable {
case iPadMultiColumn = "ipad-multi-column"
case iPadBrowserNavigation = "ipad-browser-navigation"
case iPadNavigationMode = "ipad-navigation-mode"
}
}

View File

@ -90,7 +90,8 @@ struct AppearancePrefsView : View {
@ViewBuilder
private var interfaceSection: some View {
if UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
if preferences.hasFeatureFlag(.iPadNavigationMode),
UIDevice.current.userInterfaceIdiom == .pad || UIDevice.current.userInterfaceIdiom == .mac {
Section(header: Text("Interface")) {
WidescreenNavigationPrefsView()
}