From 59ec1c58ae7ce15ea958f7de4337b604393c6b4e Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Sat, 27 May 2023 17:14:27 +0800 Subject: [PATCH] Fixes build errors on iOS --- .../Appearance/ArticleThemeManagerView.swift | 8 ++++---- .../Appearance/DisplayAndBehaviorsView.swift | 6 +++--- iOS/Settings/General/SettingsView.swift | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/iOS/Settings/Appearance/ArticleThemeManagerView.swift b/iOS/Settings/Appearance/ArticleThemeManagerView.swift index cd2c177f0..ea69c3bdc 100644 --- a/iOS/Settings/Appearance/ArticleThemeManagerView.swift +++ b/iOS/Settings/Appearance/ArticleThemeManagerView.swift @@ -21,14 +21,14 @@ struct ArticleThemeManagerView: View { Form { Section(header: Text("label.text.default-themes", comment: "Default Themes"), footer: Text("label.text.default-themes-explainer", comment: "These themes cannot be deleted.")) { articleThemeRow(try! themeManager.articleThemeWithThemeName("Default")) - ForEach(0..( get: { !appDefaults.useSystemBrowser }, set: { appDefaults.useSystemBrowser = !$0 } diff --git a/iOS/Settings/General/SettingsView.swift b/iOS/Settings/General/SettingsView.swift index dd478817c..022f1c94b 100644 --- a/iOS/Settings/General/SettingsView.swift +++ b/iOS/Settings/General/SettingsView.swift @@ -26,15 +26,15 @@ struct SettingsView: View { // Device Permissions Section(header: Text("label.text.device-permissions", comment: "Device Permissions"), footer: Text("label.text.device-permissions-explainer", comment: "Configure NetNewsWire's access to Siri, background app refresh, mobile data, and more.")) { - SettingsViewRows.openSystemSettings + SettingsRow.openSystemSettings } // Account/Extensions/OPML Management Section(header: Text("label.text.accounts-and-extensions", comment: "Settings: Accounts & Extensions section header."), footer: Text("label.text.account-and-extensions-explainer", comment: "Add, delete, enable, or disable accounts and extensions.")) { - SettingsViewRows.addAccount - SettingsViewRows.manageExtensions - SettingsViewRows.importOPML(showImportActionSheet: $viewModel.showImportActionSheet) + SettingsRow.addAccount + SettingsRow.manageExtensions + SettingsRow.importOPML(showImportActionSheet: $viewModel.showImportActionSheet) .confirmationDialog(Text("actionsheet.title.choose-opml-destination", comment: "Choose an account to receive the imported feeds and folders"), isPresented: $viewModel.showImportActionSheet, titleVisibility: .visible) { @@ -46,7 +46,7 @@ struct SettingsView: View { } } - SettingsViewRows.exportOPML(showExportActionSheet: $viewModel.showExportActionSheet) + SettingsRow.exportOPML(showExportActionSheet: $viewModel.showExportActionSheet) .confirmationDialog(Text("actionsheet.title.choose-opml-export-account", comment: "Choose an account with the subscriptions to export"), isPresented: $viewModel.showExportActionSheet, titleVisibility: .visible) { @@ -68,7 +68,7 @@ struct SettingsView: View { // Appearance Section(header: Text("label.text.appearance", comment: "Settings: Appearance section header."), footer: Text("label.text.appearance-explainer", comment: "Manage the look, feel, and behavior of NetNewsWire.")) { - SettingsViewRows.configureAppearance($isConfigureAppearanceShown) + SettingsRow.configureAppearance($isConfigureAppearanceShown) if viewModel.notificationPermissions == .authorized { SettingsRow.configureNewArticleNotifications }