From f44995968472b4b349f9e09b66b571b9880fddd6 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 1 Jan 2026 19:51:31 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=F0=9F=92=84=20Fix=204749=20-=20New=20iOS?= =?UTF-8?q?=20About=20View?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Settings/AboutContributor.swift | 69 +++++++++++++++++++++ iOS/Settings/AboutCreditView.swift | 46 ++++++++++++++ iOS/Settings/AboutView.swift | 74 +++++++++++++++++++++++ iOS/Settings/AboutViewController.swift | 60 ------------------ iOS/Settings/SettingsViewController.swift | 4 +- 5 files changed, 191 insertions(+), 62 deletions(-) create mode 100644 iOS/Settings/AboutContributor.swift create mode 100644 iOS/Settings/AboutCreditView.swift create mode 100644 iOS/Settings/AboutView.swift delete mode 100644 iOS/Settings/AboutViewController.swift diff --git a/iOS/Settings/AboutContributor.swift b/iOS/Settings/AboutContributor.swift new file mode 100644 index 000000000..a64b19817 --- /dev/null +++ b/iOS/Settings/AboutContributor.swift @@ -0,0 +1,69 @@ +// +// AboutContributor.swift +// NetNewsWire-iOS +// +// Created by Stuart Breckenridge on 01/01/2026. +// Copyright © 2026 Ranchero Software. All rights reserved. +// + +import Foundation + +public struct AboutContributor: Identifiable, Hashable { + public let id: UUID = UUID() + + let name: String + let url: URL +} + + +public enum Contributors: CaseIterable { + + case mauriceParker + case stuartBreckenridge + case bradEllis + case keilGillard + case anhDo + case nateWeaver + case andrewBrehaut + case danielJalkut + case joeHeck + case olofHellman + case rizwanMohamedIbrahim + case philViso + case ryanDotson + case others + + + public var contributor: AboutContributor { + switch self { + case .mauriceParker: + return AboutContributor(name: "Maurice Parker", url: URL(string: "https://vincode.io")!) + case .stuartBreckenridge: + return AboutContributor(name: "Stuart Breckenridge", url: URL(string: "https://stuartbreckenridge.net")!) + case .bradEllis: + return AboutContributor(name: "Brad Ellis", url: URL(string: "https://hachyderm.io/@bradellis")!) + case .keilGillard: + return AboutContributor(name: "Keil Gillard", url: URL(string: "https://twitter.com/kielgillard")!) + case .anhDo: + return AboutContributor(name: "Anh Do", url: URL(string:"https://mastodon.social/@anhdo")!) + case .nateWeaver: + return AboutContributor(name: "Nate Weaver", url: URL(string: "https://github.com/wevah")!) + case .andrewBrehaut: + return AboutContributor(name: "Andrew Brehaut", url: URL(string: "https://github.com/brehaut/")!) + case .danielJalkut: + return AboutContributor(name: "Daniel Jalkut", url: URL(string: "https://github.com/danielpunkass")!) + case .joeHeck: + return AboutContributor(name: "Joe Heck", url: URL(string: "https://rhonabwy.com/")!) + case .olofHellman: + return AboutContributor(name: "Olof Hellman", url: URL(string: "https://github.com/olofhellman")!) + case .rizwanMohamedIbrahim: + return AboutContributor(name: "Rizwan Mohamed Ibrahim", url: URL(string: "https://blog.rizwan.dev/")!) + case .philViso: + return AboutContributor(name: "Phil Viso", url: URL(string: "https://github.com/philviso")!) + case .ryanDotson: + return AboutContributor(name: "Ryan Dotson", url: URL(string: "https://github.com/nostodnayr")!) + case .others: + return AboutContributor(name: "and many more", url: URL(string: "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors")!) + } + } +} diff --git a/iOS/Settings/AboutCreditView.swift b/iOS/Settings/AboutCreditView.swift new file mode 100644 index 000000000..594f6665e --- /dev/null +++ b/iOS/Settings/AboutCreditView.swift @@ -0,0 +1,46 @@ +// +// AboutCreditView.swift +// NetNewsWire-iOS +// +// Created by Stuart Breckenridge on 15/09/2025. +// Copyright © 2025 Ranchero Software. All rights reserved. +// + +import SwiftUI + +struct AboutCreditView: View { + + let contributorType: String + let contributors: [Contributors] + + var body: some View { + HStack(alignment: .top) { + Spacer() + Text(verbatim: contributorType) + .foregroundStyle(.secondary) + .frame(maxWidth: .infinity, alignment: .trailing) + .lineLimit(3) + .multilineTextAlignment(.trailing) + .minimumScaleFactor(0.8) + VStack { + ForEach(contributors, id: \.self) { item in + Text(verbatim: item.contributor.name) + .frame(maxWidth: .infinity, alignment: .leading) + .lineLimit(2) + .multilineTextAlignment(.leading) + .minimumScaleFactor(0.8) + .foregroundStyle(.link) + .onTapGesture { + UIApplication.shared.open(item.contributor.url) + } + } + } + Spacer() + } + + } +} + +#Preview { + AboutCreditView(contributorType: "Contributing Developers", contributors: [Contributors.mauriceParker, Contributors.stuartBreckenridge]) +} diff --git a/iOS/Settings/AboutView.swift b/iOS/Settings/AboutView.swift new file mode 100644 index 000000000..78231051c --- /dev/null +++ b/iOS/Settings/AboutView.swift @@ -0,0 +1,74 @@ +// +// AboutView.swift +// NetNewsWire-iOS +// +// Created by Stuart Breckenridge on 15/09/2025. +// Copyright © 2025 Ranchero Software. All rights reserved. +// + +import SwiftUI + +struct AboutView: View { + var body: some View { + ScrollView(.vertical) { + VStack(alignment: .center, spacing: 12) { + Image("nnwFeedIcon") + .resizable() + .frame(width: 100, height: 100) + .clipShape(ConcentricRectangle(corners: .fixed(20))) + + Text(verbatim: "NetNewsWire") + .font(.largeTitle) + + Text(verbatim: "By Brent Simmons and the Ranchero Software Team") + .foregroundStyle(.secondary) + Text("[netnewswire.com](https://netnewswire.com)") + + + VStack(spacing: 6) { + Text(verbatim: "Credits") + .bold() + .foregroundStyle(.secondary) + .padding(.top, 16) + AboutCreditView(contributorType: "Contributing Developers", contributors: [Contributors.mauriceParker, Contributors.stuartBreckenridge]) + AboutCreditView(contributorType: "App Icon", contributors: [.bradEllis]) + AboutCreditView(contributorType: "Feedly Syncing", contributors: [.keilGillard]) + AboutCreditView(contributorType: "NewsBlur Synching", contributors: [.anhDo]) + AboutCreditView(contributorType: "Under-the-hood magic & CSS", contributors: [.nateWeaver]) + AboutCreditView(contributorType: "Newsfoot (JS footnote displayer)", contributors: [.andrewBrehaut]) + AboutCreditView(contributorType: "Help Book", contributors: [.ryanDotson]) + AboutCreditView(contributorType: "...and Featuring Additional Contributions from", contributors: [.danielJalkut, .joeHeck, .olofHellman, .rizwanMohamedIbrahim, .philViso, .others]) + } + + VStack(spacing: 6) { + Text(verbatim: "Thanks") + .bold() + .foregroundStyle(.secondary) + .padding(.top, 16) + Text("Thanks to Sheila and my family; thanks to my friends in Seattle and around the globe; thanks to the ever-patient and ever-awesome NetNewsWire beta testers.\n\nThanks to [Gus Mueller](https://shapeof.com/) for [FMDB](https://github.com/ccgus/fmdb) by [Flying Meat Software](http://flyingmeat.com/). Thanks to [GitHub](https://github.com) and [Discourse](https://discourse.com) for making open source collaboration easy and fun. Thanks to [Ben Ubois](https://benubois.com/) at [Feedbin](https://feedbin.com) for all the extra help with syncing and article rendering — and [for hosting the server for the Reader view](https://feedbin.com/blog/2019/03/11/the-future-of-full-content/).") + } + + VStack(spacing: 6) { + Text(verbatim: "Dedication") + .bold() + .foregroundStyle(.secondary) + .padding(.top, 16) + Text("NetNewsWire 7 is dedicated to everyone working to save democracy around the world.") + } + + + Text(verbatim: "Copyright © 2002-2025 Brent Simmons") + .font(.caption) + .foregroundStyle(.secondary) + } + .scenePadding(.horizontal) + } + .multilineTextAlignment(.center) + .background(Color(uiColor: .systemBackground)) + .navigationTitle(Text(verbatim: "About")) + } +} + +#Preview { + AboutView() +} diff --git a/iOS/Settings/AboutViewController.swift b/iOS/Settings/AboutViewController.swift deleted file mode 100644 index f6b7f3bd2..000000000 --- a/iOS/Settings/AboutViewController.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// AboutViewController.swift -// NetNewsWire-iOS -// -// Created by Maurice Parker on 4/25/19. -// Copyright © 2019 Ranchero Software. All rights reserved. -// - -import UIKit -import RSCore - -final class AboutViewController: UITableViewController { - - @IBOutlet var aboutTextView: UITextView! - @IBOutlet var creditsTextView: UITextView! - @IBOutlet var acknowledgmentsTextView: UITextView! - @IBOutlet var thanksTextView: UITextView! - @IBOutlet var dedicationTextView: UITextView! - - override func viewDidLoad() { - - super.viewDidLoad() - - configureCell(file: "About", textView: aboutTextView) - configureCell(file: "Credits", textView: creditsTextView) - configureCell(file: "Thanks", textView: thanksTextView) - configureCell(file: "Dedication", textView: dedicationTextView) - - let buildLabel = NonIntrinsicLabel(frame: CGRect(x: 32.0, y: 0.0, width: 0.0, height: 0.0)) - buildLabel.font = UIFont.systemFont(ofSize: 11.0) - buildLabel.textColor = UIColor.gray - buildLabel.text = NSLocalizedString("Copyright © 2002-2026 Brent Simmons", comment: "Copyright") - buildLabel.numberOfLines = 0 - buildLabel.sizeToFit() - buildLabel.translatesAutoresizingMaskIntoConstraints = false - - let wrapperView = UIView(frame: CGRect(x: 0, y: 0, width: buildLabel.frame.width, height: buildLabel.frame.height + 10.0)) - wrapperView.translatesAutoresizingMaskIntoConstraints = false - wrapperView.addSubview(buildLabel) - tableView.tableFooterView = wrapperView - } - - override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { - return UITableView.automaticDimension - } - -} - -private extension AboutViewController { - - func configureCell(file: String, textView: UITextView) { - let url = Bundle.main.url(forResource: file, withExtension: "rtf")! - let string = try! NSAttributedString(url: url, options: [NSAttributedString.DocumentReadingOptionKey.documentType: NSAttributedString.DocumentType.rtf], documentAttributes: nil) - textView.attributedText = string - textView.textColor = UIColor.label - textView.adjustsFontForContentSizeCategory = true - textView.font = .preferredFont(forTextStyle: .body) - } - -} diff --git a/iOS/Settings/SettingsViewController.swift b/iOS/Settings/SettingsViewController.swift index 39a87e808..8039d3a48 100644 --- a/iOS/Settings/SettingsViewController.swift +++ b/iOS/Settings/SettingsViewController.swift @@ -232,8 +232,8 @@ final class SettingsViewController: UITableViewController { openURL(HelpURL.bugTracker.rawValue) tableView.selectRow(at: nil, animated: true, scrollPosition: .none) case 3: - let timeline = UIStoryboard.settings.instantiateController(ofType: AboutViewController.self) - self.navigationController?.pushViewController(timeline, animated: true) + let hosting = UIHostingController(rootView: AboutView()) + self.navigationController?.pushViewController(hosting, animated: true) default: break } From 50fba2ae6b27a04e33a9153221482d8593aa7069 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 1 Jan 2026 19:52:05 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20Mac=20credits=20to?= =?UTF-8?q?=20point=20to=20mastdon=20and=20not=20x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mac/Resources/Credits.rtf | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Mac/Resources/Credits.rtf b/Mac/Resources/Credits.rtf index 46022b180..c72062967 100644 --- a/Mac/Resources/Credits.rtf +++ b/Mac/Resources/Credits.rtf @@ -2,7 +2,7 @@ \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset0 SFPro-Bold;\f1\fnil\fcharset0 SFPro-Regular;} {\colortbl;\red255\green255\blue255;\red0\green0\blue0;} {\*\expandedcolortbl;;\cssrgb\c0\c0\c0\cname textColor;} -\margl1440\margr1440\vieww14060\viewh15660\viewkind0 +\paperw12240\paperh15840\margl1440\margr1440\vieww14060\viewh15660\viewkind0 \deftab720 \pard\pardeftab720\sa60\partightenfactor0 @@ -14,16 +14,16 @@ \cf2 Contributing Developers \ \pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 {\field{\*\fldinst{HYPERLINK "https://stuartbreckenridge.net/"}}{\fldrslt \cf2 Stuart Breckenridge}}, {\field{\*\fldinst{HYPERLINK "https://github.com/vincode-io"}}{\fldrslt Maurice Parker}}\ -\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 -\cf2 \ +\ App Icon\ -{\field{\*\fldinst{HYPERLINK "https://twitter.com/BradEllis"}}{\fldrslt Brad Ellis}}\ +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 +{\field{\*\fldinst{HYPERLINK "https://hachyderm.io/@bradellis"}}{\fldrslt \cf2 Brad Ellis}}\ \ Feedly Syncing\ {\field{\*\fldinst{HYPERLINK "https://twitter.com/kielgillard"}}{\fldrslt Kiel Gillard}}\ \ NewsBlur Syncing\ -{\field{\*\fldinst{HYPERLINK "https://twitter.com/quanganhdo"}}{\fldrslt Anh Do}}\ +{\field{\*\fldinst{HYPERLINK "https://mastodon.social/@anhdo"}}{\fldrslt Anh Do}}\ \ Under-the-Hood Magic and CSS Stylin's\ {\field{\*\fldinst{HYPERLINK "https://github.com/wevah"}}{\fldrslt Nate Weaver}}\ @@ -31,8 +31,14 @@ Under-the-Hood Magic and CSS Stylin's\ Newsfoot (JS footnote displayer)\ {\field{\*\fldinst{HYPERLINK "https://github.com/brehaut/"}}{\fldrslt Andrew Brehaut}}\ \ +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 +\cf2 Help Book\ +{\field{\*\fldinst{HYPERLINK "https://github.com/nostodnayr"}}{\fldrslt Ryan Dotson}}\ +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 +\cf2 \ And featuring contributions from\ -{\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://twitter.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\ +\pard\pardeftab720\sl168\slmult1\sa60\partightenfactor0 +{\field{\*\fldinst{HYPERLINK "https://github.com/danielpunkass"}}{\fldrslt \cf2 Daniel Jalkut}}, {\field{\*\fldinst{HYPERLINK "https://rhonabwy.com/"}}{\fldrslt Joe Heck}}, {\field{\*\fldinst{HYPERLINK "https://github.com/olofhellman"}}{\fldrslt Olof Hellman}}, {\field{\*\fldinst{HYPERLINK "https://blog.rizwan.dev/"}}{\fldrslt Rizwan Mohamed Ibrahim}}, {\field{\*\fldinst{HYPERLINK "https://github.com/philviso"}}{\fldrslt Phil Viso}}, and {\field{\*\fldinst{HYPERLINK "https://github.com/Ranchero-Software/NetNewsWire/graphs/contributors"}}{\fldrslt many more}}!\ \pard\pardeftab720\li360\sa60\partightenfactor0 \cf2 \ \pard\pardeftab720\sa60\partightenfactor0 From 3128ac95222de6c3638a4cbc2a21fcea0429ed4f Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Thu, 1 Jan 2026 21:14:18 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E2=9C=A8=20Add=20Forum=20Link=20in=20iOS?= =?UTF-8?q?=20Settings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/Settings/Settings.storyboard | 67 ++++++++++++++--------- iOS/Settings/SettingsViewController.swift | 7 ++- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard index 0a83bf7c5..d8eb3a762 100644 --- a/iOS/Settings/Settings.storyboard +++ b/iOS/Settings/Settings.storyboard @@ -1,8 +1,8 @@ - + - + @@ -384,10 +384,10 @@ - + - + - + @@ -429,20 +429,20 @@ - + - + - + - + - - + - + -