diff --git a/Shared/Localizable.xcstrings b/Shared/Localizable.xcstrings
index 6648f0367..e052ec269 100644
--- a/Shared/Localizable.xcstrings
+++ b/Shared/Localizable.xcstrings
@@ -74,9 +74,6 @@
}
}
},
- "About NetNewsWire" : {
- "comment" : "About NetNewsWire"
- },
"Account" : {
"comment" : "Account"
},
@@ -272,9 +269,6 @@
"Automatic" : {
"comment" : "Automatic"
},
- "Bug Tracker" : {
- "comment" : "Bug Tracker"
- },
"Can’t add a feed because no feed was found." : {
"comment" : "Feed finder"
},
@@ -511,9 +505,6 @@
}
}
},
- "Dinosaurs" : {
- "comment" : "Dinosaurs"
- },
"Dinosaurs Help" : {
"comment" : "Help link"
},
@@ -966,12 +957,6 @@
"comment" : "A dedication to those working to save democracy.",
"isCommentAutoGenerated" : true
},
- "NetNewsWire Forum" : {
- "comment" : "NetNewsWire Forum"
- },
- "NetNewsWire Help" : {
- "comment" : "NetNewsWire Help"
- },
"NetNewsWire News" : {
"comment" : "NetNewsWire News"
},
@@ -1160,9 +1145,6 @@
"Refresh to Clear Read Articles" : {
"comment" : "Refresh to Clear Read Articles"
},
- "Release Notes" : {
- "comment" : "Release Notes"
- },
"Remove" : {
"comment" : "Remove"
},
@@ -1629,9 +1611,6 @@
"Totals" : {
"comment" : "Totals section"
},
- "Troubleshooting" : {
- "comment" : "Troubleshooting"
- },
"Type:" : {
"localizations" : {
"es" : {
diff --git a/iOS/Settings/HelpSettingsViewController.swift b/iOS/Settings/HelpSettingsViewController.swift
deleted file mode 100644
index d8638926f..000000000
--- a/iOS/Settings/HelpSettingsViewController.swift
+++ /dev/null
@@ -1,118 +0,0 @@
-//
-// HelpSettingsViewController.swift
-// NetNewsWire-iOS
-//
-// Created by Brent Simmons on 11/12/26.
-// Copyright © 2026 Ranchero Software. All rights reserved.
-//
-
-import UIKit
-import SafariServices
-import SwiftUI
-
-final class HelpSettingsViewController: UITableViewController {
-
- private enum Row: Int, CaseIterable {
- case help
- case forum
- case releaseNotes
- case bugTracker
- case about
-
- var title: String {
- switch self {
- case .help:
- return NSLocalizedString("NetNewsWire Help", comment: "NetNewsWire Help")
- case .forum:
- return NSLocalizedString("NetNewsWire Forum", comment: "NetNewsWire Forum")
- case .releaseNotes:
- return NSLocalizedString("Release Notes", comment: "Release Notes")
- case .bugTracker:
- return NSLocalizedString("Bug Tracker", comment: "Bug Tracker")
- case .about:
- return NSLocalizedString("About NetNewsWire", comment: "About NetNewsWire")
- }
- }
- }
-
- private static let cellIdentifier = "Cell"
-
- init() {
- super.init(style: .insetGrouped)
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
- title = NSLocalizedString("Help", comment: "Help")
- tableView.register(VibrantTableViewCell.self, forCellReuseIdentifier: Self.cellIdentifier)
- }
-
- // MARK: - UITableViewDataSource
-
- override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return Row.allCases.count
- }
-
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: Self.cellIdentifier, for: indexPath)
- let row = Row.allCases[indexPath.row]
- cell.textLabel?.text = row.title
- cell.textLabel?.adjustsFontForContentSizeCategory = true
- cell.accessoryType = row == .about ? .disclosureIndicator : .none
- return cell
- }
-
- // MARK: - UITableViewDelegate
-
- override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
- switch Row.allCases[indexPath.row] {
- case .help:
- openURL(HelpURL.helpHome.rawValue)
- tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
- case .forum:
- openURL(HelpURL.discourse.rawValue)
- tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
- case .releaseNotes:
- openURL(HelpURL.releaseNotes.rawValue)
- tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
- case .bugTracker:
- openURL(HelpURL.bugTracker.rawValue)
- tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
- case .about:
- navigationController?.pushViewController(UIHostingController(rootView: AboutView()), animated: true)
- }
- }
-}
-
-// MARK: - Private
-
-private extension HelpSettingsViewController {
-
- func openURL(_ urlString: String) {
- guard let url = URL(string: urlString) else {
- return
- }
-
- // Open GitHub links in the GitHub app when installed.
- if let host = url.host, host == "github.com" || host.hasSuffix(".github.com") {
- UIApplication.shared.open(url, options: [.universalLinksOnly: true]) { [weak self] openedInApp in
- if !openedInApp {
- self?.presentSafariViewController(for: url)
- }
- }
- return
- }
-
- presentSafariViewController(for: url)
- }
-
- func presentSafariViewController(for url: URL) {
- let vc = SFSafariViewController(url: url)
- vc.modalPresentationStyle = .pageSheet
- present(vc, animated: true)
- }
-}
diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard
index 49f948aa7..674702c91 100644
--- a/iOS/Settings/Settings.storyboard
+++ b/iOS/Settings/Settings.storyboard
@@ -117,6 +117,23 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -168,23 +185,10 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -192,7 +196,7 @@
-
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift
index a748f7094..6508c5d08 100644
--- a/iOS/Settings/SettingsViewController.swift
+++ b/iOS/Settings/SettingsViewController.swift
@@ -8,6 +8,7 @@
import UIKit
import CoreServices
+import SafariServices
import SwiftUI
import UniformTypeIdentifiers
import RSCore
@@ -21,15 +22,31 @@ final class SettingsViewController: UITableViewController {
case accounts = 1
case feeds = 2
case moreScreens = 3
+ case troubleshooting = 4
+ case help = 5
}
private enum MoreScreensRow: Int {
- case sidebar = 0
- case timeline = 1
- case articles = 2
- case appearance = 3
- case troubleshooting = 4
- case help = 5
+ case appearance = 0
+ case sidebar = 1
+ case timeline = 2
+ case articles = 3
+ }
+
+ private enum TroubleshootingRow: Int {
+ case errorLog = 0
+ case activityLog = 1
+ case accountStats = 2
+ case dinosaurs = 3
+ case cloudKitZoneStats = 4
+ }
+
+ private enum HelpRow: Int {
+ case help = 0
+ case forum = 1
+ case releaseNotes = 2
+ case bugTracker = 3
+ case about = 4
}
private enum FeedsRow: Int {
@@ -97,6 +114,12 @@ final class SettingsViewController: UITableViewController {
return defaultNumberOfRows - 1
}
return defaultNumberOfRows
+ case .troubleshooting:
+ let defaultNumberOfRows = super.tableView(tableView, numberOfRowsInSection: section)
+ if !AccountManager.shared.hasiCloudAccount {
+ return defaultNumberOfRows - 1
+ }
+ return defaultNumberOfRows
default:
return super.tableView(tableView, numberOfRowsInSection: section)
}
@@ -176,12 +199,55 @@ final class SettingsViewController: UITableViewController {
self.navigationController?.pushViewController(ArticlesSettingsViewController(), animated: true)
case .appearance:
self.navigationController?.pushViewController(AppearanceSettingsViewController(), animated: true)
- case .troubleshooting:
- let troubleshooting = TroubleshootingSettingsViewController()
- troubleshooting.presentingParentController = presentingParentController
- self.navigationController?.pushViewController(troubleshooting, animated: true)
+ default:
+ break
+ }
+ case .troubleshooting:
+ let viewController: UIViewController? = {
+ switch TroubleshootingRow(rawValue: indexPath.row) {
+ case .errorLog:
+ return UIHostingController(rootView: ErrorLogView())
+ case .accountStats:
+ return UIHostingController(rootView: AccountStatsView())
+ case .cloudKitZoneStats:
+ return UIHostingController(rootView: CloudKitStatsView())
+ case .activityLog:
+ return UIHostingController(rootView: ActivityLogView())
+ case .dinosaurs:
+ return UIHostingController(rootView: DinosaursView(dismissAndPresent: { [weak self] dinosaur in
+ guard let self else {
+ return
+ }
+ self.dismiss(animated: true) {
+ if let rootSplit = self.presentingParentController as? RootSplitViewController {
+ rootSplit.coordinator.discloseFeed(dinosaur.feed, animations: [.scroll, .navigation])
+ }
+ }
+ }))
+ default:
+ return nil
+ }
+ }()
+ if let viewController {
+ self.navigationController?.pushViewController(viewController, animated: true)
+ }
+ case .help:
+ switch HelpRow(rawValue: indexPath.row) {
case .help:
- self.navigationController?.pushViewController(HelpSettingsViewController(), animated: true)
+ openURL(HelpURL.helpHome.rawValue)
+ tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
+ case .forum:
+ openURL(HelpURL.discourse.rawValue)
+ tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
+ case .releaseNotes:
+ openURL(HelpURL.releaseNotes.rawValue)
+ tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
+ case .bugTracker:
+ openURL(HelpURL.bugTracker.rawValue)
+ tableView.selectRow(at: nil, animated: true, scrollPosition: .none)
+ case .about:
+ let hosting = UIHostingController(rootView: AboutView())
+ self.navigationController?.pushViewController(hosting, animated: true)
default:
break
}
@@ -382,4 +448,28 @@ private extension SettingsViewController {
docPicker.modalPresentationStyle = .formSheet
self.present(docPicker, animated: true)
}
+
+ func openURL(_ urlString: String) {
+ guard let url = URL(string: urlString) else {
+ return
+ }
+
+ // Open GitHub links in the GitHub app when installed.
+ if let host = url.host, host == "github.com" || host.hasSuffix(".github.com") {
+ UIApplication.shared.open(url, options: [.universalLinksOnly: true]) { [weak self] openedInApp in
+ if !openedInApp {
+ self?.presentSafariViewController(for: url)
+ }
+ }
+ return
+ }
+
+ presentSafariViewController(for: url)
+ }
+
+ private func presentSafariViewController(for url: URL) {
+ let vc = SFSafariViewController(url: url)
+ vc.modalPresentationStyle = .pageSheet
+ present(vc, animated: true)
+ }
}
diff --git a/iOS/Settings/TroubleshootingSettingsViewController.swift b/iOS/Settings/TroubleshootingSettingsViewController.swift
deleted file mode 100644
index d7f593a04..000000000
--- a/iOS/Settings/TroubleshootingSettingsViewController.swift
+++ /dev/null
@@ -1,103 +0,0 @@
-//
-// TroubleshootingSettingsViewController.swift
-// NetNewsWire-iOS
-//
-// Created by Brent Simmons on 11/12/26.
-// Copyright © 2026 Ranchero Software. All rights reserved.
-//
-
-import UIKit
-import SwiftUI
-import Account
-
-final class TroubleshootingSettingsViewController: UITableViewController {
-
- private enum Row: CaseIterable {
- case errorLog
- case activityLog
- case accountStats
- case dinosaurs
- case cloudKitZoneStats
-
- var title: String {
- switch self {
- case .errorLog:
- return NSLocalizedString("Error Log", comment: "Error Log window title")
- case .activityLog:
- return NSLocalizedString("Activity Log", comment: "Activity Log screen title")
- case .accountStats:
- return NSLocalizedString("Account Stats", comment: "Account Stats screen title")
- case .dinosaurs:
- return NSLocalizedString("Dinosaurs", comment: "Dinosaurs")
- case .cloudKitZoneStats:
- return NSLocalizedString("iCloud Storage Stats", comment: "iCloud Storage Stats window title")
- }
- }
- }
-
- private static let cellIdentifier = "Cell"
-
- weak var presentingParentController: UIViewController?
-
- private var rows = [Row]()
-
- init() {
- super.init(style: .insetGrouped)
- }
-
- required init?(coder: NSCoder) {
- fatalError("init(coder:) has not been implemented")
- }
-
- override func viewDidLoad() {
- super.viewDidLoad()
- title = NSLocalizedString("Troubleshooting", comment: "Troubleshooting")
- tableView.register(VibrantTableViewCell.self, forCellReuseIdentifier: Self.cellIdentifier)
-
- // iCloud Storage Stats is shown only when there’s an iCloud account.
- rows = Row.allCases.filter { $0 != .cloudKitZoneStats || AccountManager.shared.hasiCloudAccount }
- }
-
- // MARK: - UITableViewDataSource
-
- override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
- return rows.count
- }
-
- override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: Self.cellIdentifier, for: indexPath)
- cell.textLabel?.text = rows[indexPath.row].title
- cell.textLabel?.adjustsFontForContentSizeCategory = true
- cell.accessoryType = .disclosureIndicator
- return cell
- }
-
- // MARK: - UITableViewDelegate
-
- override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
- let viewController: UIViewController = {
- switch rows[indexPath.row] {
- case .errorLog:
- return UIHostingController(rootView: ErrorLogView())
- case .activityLog:
- return UIHostingController(rootView: ActivityLogView())
- case .accountStats:
- return UIHostingController(rootView: AccountStatsView())
- case .cloudKitZoneStats:
- return UIHostingController(rootView: CloudKitStatsView())
- case .dinosaurs:
- return UIHostingController(rootView: DinosaursView(dismissAndPresent: { [weak self] dinosaur in
- guard let self else {
- return
- }
- self.dismiss(animated: true) {
- if let rootSplit = self.presentingParentController as? RootSplitViewController {
- rootSplit.coordinator.discloseFeed(dinosaur.feed, animations: [.scroll, .navigation])
- }
- }
- }))
- }
- }()
- navigationController?.pushViewController(viewController, animated: true)
- }
-}