From c70a7ab4a7ab7493eae50e4269dba3d62fb6f53b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 21 Oct 2026 19:05:11 -0700 Subject: [PATCH] Make iOS 18 the minimum target. --- Modules/Account/Package.swift | 2 +- Modules/ActivityLog/Package.swift | 2 +- Modules/Articles/Package.swift | 2 +- Modules/ArticlesDatabase/Package.swift | 2 +- Modules/CloudKitSync/Package.swift | 2 +- Modules/ErrorLog/Package.swift | 2 +- Modules/FeedFinder/Package.swift | 2 +- Modules/HTMLMetadata/Package.swift | 2 +- Modules/Images/Package.swift | 2 +- Modules/NewsBlur/Package.swift | 2 +- Modules/RSCore/Package.swift | 2 +- Modules/RSDatabase/Package.swift | 2 +- Modules/RSParser/Package.swift | 2 +- Modules/RSTree/Package.swift | 2 +- Modules/RSWeb/Package.swift | 2 +- Modules/Secrets/Package.swift | 2 +- Modules/SyncDatabase/Package.swift | 2 +- Shared/Assets.swift | 24 +++---------------- iOS/Article/ImageScrollView.swift | 1 - iOS/KeyboardManager.swift | 8 ++----- .../MainFeedCollectionViewCell.swift | 9 +------ .../MainFeedCollectionViewFolderCell.swift | 9 +------ iOS/MainTimeline/Cell/MainTimelineCell.swift | 7 +----- iOS/Settings/TimelineCustomizerCell.swift | 7 +----- ...ewsWire_iOSwidgetextension_target.xcconfig | 2 +- xcconfig/NetNewsWire_project.xcconfig | 2 +- 26 files changed, 28 insertions(+), 75 deletions(-) diff --git a/Modules/Account/Package.swift b/Modules/Account/Package.swift index d74cc898f..ec88c2f8d 100644 --- a/Modules/Account/Package.swift +++ b/Modules/Account/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Account", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "Account", diff --git a/Modules/ActivityLog/Package.swift b/Modules/ActivityLog/Package.swift index 351a57383..d98ab0f11 100644 --- a/Modules/ActivityLog/Package.swift +++ b/Modules/ActivityLog/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "ActivityLog", defaultLocalization: "en", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "ActivityLog", diff --git a/Modules/Articles/Package.swift b/Modules/Articles/Package.swift index b3c670ef0..af40879c6 100644 --- a/Modules/Articles/Package.swift +++ b/Modules/Articles/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Articles", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "Articles", diff --git a/Modules/ArticlesDatabase/Package.swift b/Modules/ArticlesDatabase/Package.swift index 52f245708..5a38eeec0 100644 --- a/Modules/ArticlesDatabase/Package.swift +++ b/Modules/ArticlesDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "ArticlesDatabase", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "ArticlesDatabase", diff --git a/Modules/CloudKitSync/Package.swift b/Modules/CloudKitSync/Package.swift index c1cbdfac7..7414c4c76 100644 --- a/Modules/CloudKitSync/Package.swift +++ b/Modules/CloudKitSync/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "CloudKitSync", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "CloudKitSync", diff --git a/Modules/ErrorLog/Package.swift b/Modules/ErrorLog/Package.swift index 2115c45f8..7cd0bc69a 100644 --- a/Modules/ErrorLog/Package.swift +++ b/Modules/ErrorLog/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "ErrorLog", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "ErrorLog", diff --git a/Modules/FeedFinder/Package.swift b/Modules/FeedFinder/Package.swift index 6b22b0a0b..aef783a1f 100644 --- a/Modules/FeedFinder/Package.swift +++ b/Modules/FeedFinder/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "FeedFinder", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "FeedFinder", diff --git a/Modules/HTMLMetadata/Package.swift b/Modules/HTMLMetadata/Package.swift index c11e76c38..fc055c7fd 100644 --- a/Modules/HTMLMetadata/Package.swift +++ b/Modules/HTMLMetadata/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "HTMLMetadata", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "HTMLMetadata", diff --git a/Modules/Images/Package.swift b/Modules/Images/Package.swift index f65971be9..7d9ecd641 100644 --- a/Modules/Images/Package.swift +++ b/Modules/Images/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Images", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "Images", diff --git a/Modules/NewsBlur/Package.swift b/Modules/NewsBlur/Package.swift index 8259306e9..ebb83909f 100644 --- a/Modules/NewsBlur/Package.swift +++ b/Modules/NewsBlur/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "NewsBlur", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "NewsBlur", diff --git a/Modules/RSCore/Package.swift b/Modules/RSCore/Package.swift index 9c6ccd945..dd54eb275 100644 --- a/Modules/RSCore/Package.swift +++ b/Modules/RSCore/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSCore", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library(name: "RSCore", type: .dynamic, targets: ["RSCore"]), .library(name: "RSCoreObjC", type: .dynamic, targets: ["RSCoreObjC"]), diff --git a/Modules/RSDatabase/Package.swift b/Modules/RSDatabase/Package.swift index 95f657adb..9de622d70 100644 --- a/Modules/RSDatabase/Package.swift +++ b/Modules/RSDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSDatabase", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "RSDatabase", diff --git a/Modules/RSParser/Package.swift b/Modules/RSParser/Package.swift index 316578a9d..8b397d8b6 100644 --- a/Modules/RSParser/Package.swift +++ b/Modules/RSParser/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSParser", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "RSParser", diff --git a/Modules/RSTree/Package.swift b/Modules/RSTree/Package.swift index 4f6250c16..e08adcd97 100644 --- a/Modules/RSTree/Package.swift +++ b/Modules/RSTree/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSTree", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "RSTree", diff --git a/Modules/RSWeb/Package.swift b/Modules/RSWeb/Package.swift index e3663cb9c..b4ad56022 100644 --- a/Modules/RSWeb/Package.swift +++ b/Modules/RSWeb/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSWeb", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "RSWeb", diff --git a/Modules/Secrets/Package.swift b/Modules/Secrets/Package.swift index b712e8361..3512db435 100644 --- a/Modules/Secrets/Package.swift +++ b/Modules/Secrets/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Secrets", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "Secrets", diff --git a/Modules/SyncDatabase/Package.swift b/Modules/SyncDatabase/Package.swift index 330b3ade4..491ca022a 100644 --- a/Modules/SyncDatabase/Package.swift +++ b/Modules/SyncDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "SyncDatabase", - platforms: [.macOS(.v15), .iOS(.v17)], + platforms: [.macOS(.v15), .iOS(.v18)], products: [ .library( name: "SyncDatabase", diff --git a/Shared/Assets.swift b/Shared/Assets.swift index a17c3d4a6..a3b4dd4b1 100644 --- a/Shared/Assets.swift +++ b/Shared/Assets.swift @@ -42,27 +42,9 @@ struct Assets { nonisolated static var nnwFeedIcon: RSImage { RSImage(named: "nnwFeedIcon")! } static var faviconTemplate: RSImage { RSImage(named: "faviconTemplateImage")! } - static let articleExtractorOff: RSImage = { - if #available(iOS 18, macOS 15, *) { - return RSImage(symbol: "text.page")! - } else { - return RSImage(symbol: "doc.plaintext")! - } - }() - static let articleExtractorOn: RSImage = { - if #available(iOS 18, macOS 15, *) { - return RSImage(symbol: "text.page.fill")! - } else { - return RSImage(symbol: "doc.plaintext.fill")! - } - }() - static let articleExtractorError: RSImage = { - if #available(iOS 18, macOS 15, *) { - return RSImage(symbol: "text.page.slash")! - } else { - return RSImage(symbol: "exclamationmark.triangle")! - } - }() + static let articleExtractorOff: RSImage = RSImage(symbol: "text.page")! + static let articleExtractorOn: RSImage = RSImage(symbol: "text.page.fill")! + static let articleExtractorError: RSImage = RSImage(symbol: "text.page.slash")! static let share = RSImage(symbol: "square.and.arrow.up")! static let folder = RSImage(symbol: "folder")! static let starredFeed = IconImage(starClosed, isSymbol: true, isBackgroundSuppressed: true, preferredColor: Assets.Colors.star) diff --git a/iOS/Article/ImageScrollView.swift b/iOS/Article/ImageScrollView.swift index 408757527..4415139b2 100644 --- a/iOS/Article/ImageScrollView.swift +++ b/iOS/Article/ImageScrollView.swift @@ -343,7 +343,6 @@ extension ImageScrollView: UIScrollViewDelegate { return false } - @available(iOS 11.0, *) public func scrollViewDidChangeAdjustedContentInset(_ scrollView: UIScrollView) { imageScrollViewDelegate?.scrollViewDidChangeAdjustedContentInset?(scrollView) } diff --git a/iOS/KeyboardManager.swift b/iOS/KeyboardManager.swift index 349deed5d..669abca29 100644 --- a/iOS/KeyboardManager.swift +++ b/iOS/KeyboardManager.swift @@ -48,9 +48,7 @@ enum KeyboardType: String, Sendable { static func createKeyCommand(title: String, action: String, input: String, modifiers: UIKeyModifierFlags) -> UIKeyCommand { let selector = NSSelectorFromString(action) let keyCommand = UIKeyCommand(title: title, image: nil, action: selector, input: input, modifierFlags: modifiers, propertyList: nil, alternates: [], discoverabilityTitle: nil, attributes: [], state: .on) - if #available(iOS 15.0, *) { - keyCommand.wantsPriorityOverSystemBehavior = true - } + keyCommand.wantsPriorityOverSystemBehavior = true return keyCommand } } @@ -66,9 +64,7 @@ private extension KeyboardManager { return KeyboardManager.createKeyCommand(title: title, action: action, input: input, modifiers: modifiers) } else { let keyCommand = UIKeyCommand(input: input, modifierFlags: modifiers, action: NSSelectorFromString(action)) - if #available(iOS 15.0, *) { - keyCommand.wantsPriorityOverSystemBehavior = true - } + keyCommand.wantsPriorityOverSystemBehavior = true return keyCommand } } diff --git a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift index b4e06f59f..9e2e2fb02 100644 --- a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift +++ b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewCell.swift @@ -78,14 +78,7 @@ final class MainFeedCollectionViewCell: UICollectionViewCell { } override func updateConfiguration(using state: UICellConfigurationState) { - var backgroundConfig: UIBackgroundConfiguration - if #available(iOS 18, *) { - backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) - } else if traitCollection.userInterfaceIdiom == .pad { - backgroundConfig = UIBackgroundConfiguration.listSidebarCell().updated(for: state) - } else { - backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state) - } + var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) // Matches the timeline: accent background and white text when the feeds list is first responder, // and no highlight while a row is pressed, so the row goes straight to the selected style. diff --git a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift index de11eccf9..5c357c620 100644 --- a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift +++ b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift @@ -138,14 +138,7 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell { } override func updateConfiguration(using state: UICellConfigurationState) { - var backgroundConfig: UIBackgroundConfiguration - if #available(iOS 18, *) { - backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) - } else if traitCollection.userInterfaceIdiom == .pad { - backgroundConfig = UIBackgroundConfiguration.listSidebarCell().updated(for: state) - } else { - backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state) - } + var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) // Matches the timeline: accent background and white text when the feeds list is first responder, // and no highlight while a row is pressed, so the row goes straight to the selected style. diff --git a/iOS/MainTimeline/Cell/MainTimelineCell.swift b/iOS/MainTimeline/Cell/MainTimelineCell.swift index 2733a17ee..0bb6323b3 100644 --- a/iOS/MainTimeline/Cell/MainTimelineCell.swift +++ b/iOS/MainTimeline/Cell/MainTimelineCell.swift @@ -72,12 +72,7 @@ final class MainTimelineCell: UICollectionViewCell { override func updateConfiguration(using state: UICellConfigurationState) { super.updateConfiguration(using: state) - var backgroundConfig: UIBackgroundConfiguration - if #available(iOS 18, *) { - backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) - } else { - backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state) - } + var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) // The Settings timeline preview isn't in the split view hierarchy, so style it // the way the timeline usually looks on the device. let usesExpandedStyle = isPreview ? UIDevice.current.userInterfaceIdiom == .pad : isInExpandedSplitView diff --git a/iOS/Settings/TimelineCustomizerCell.swift b/iOS/Settings/TimelineCustomizerCell.swift index 4ed3d1087..80b01faa8 100644 --- a/iOS/Settings/TimelineCustomizerCell.swift +++ b/iOS/Settings/TimelineCustomizerCell.swift @@ -55,12 +55,7 @@ final class TimelineCustomizerCell: UICollectionViewCell { } override func updateConfiguration(using state: UICellConfigurationState) { - var backgroundConfig: UIBackgroundConfiguration - if #available(iOS 18, *) { - backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) - } else { - backgroundConfig = UIBackgroundConfiguration.listGroupedCell().updated(for: state) - } + var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state) backgroundConfig.backgroundColor = traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white backgroundConfig.cornerRadius = 20 self.backgroundConfiguration = backgroundConfig diff --git a/xcconfig/NetNewsWire_iOSwidgetextension_target.xcconfig b/xcconfig/NetNewsWire_iOSwidgetextension_target.xcconfig index 6c9a575e2..0cd00deae 100644 --- a/xcconfig/NetNewsWire_iOSwidgetextension_target.xcconfig +++ b/xcconfig/NetNewsWire_iOSwidgetextension_target.xcconfig @@ -3,4 +3,4 @@ CODE_SIGN_ENTITLEMENTS = Widget/NetNewsWire_iOS_WidgetExtension.entitlements INFOPLIST_FILE = Widget/Info.plist PRODUCT_BUNDLE_IDENTIFIER = $(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS$(BUNDLE_ID_SUFFIX).SpringboardWidgets -IPHONEOS_DEPLOYMENT_TARGET = 17.0 +IPHONEOS_DEPLOYMENT_TARGET = 18.0 diff --git a/xcconfig/NetNewsWire_project.xcconfig b/xcconfig/NetNewsWire_project.xcconfig index d774bbde9..e65dfeb6a 100644 --- a/xcconfig/NetNewsWire_project.xcconfig +++ b/xcconfig/NetNewsWire_project.xcconfig @@ -47,7 +47,7 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES MACOSX_DEPLOYMENT_TARGET = 15.0 -IPHONEOS_DEPLOYMENT_TARGET = 17.0 +IPHONEOS_DEPLOYMENT_TARGET = 18.0 //SDKROOT = macosx SWIFT_EMIT_LOC_STRINGS = YES SWIFT_SWIFT3_OBJC_INFERENCE = Off