diff --git a/Mac/About/AboutWindowController.swift b/Mac/About/AboutWindowController.swift index 6d4a1f142..89af9b8ae 100644 --- a/Mac/About/AboutWindowController.swift +++ b/Mac/About/AboutWindowController.swift @@ -30,11 +30,22 @@ private extension AboutWindowController { window?.titlebarAppearsTransparent = true window?.titleVisibility = .hidden window?.styleMask.insert(.fullSizeContentView) - if let contentView = window?.contentView { - let visualEffectView = NSGlassEffectView(frame: contentView.bounds) - visualEffectView.tintColor = .clear - visualEffectView.autoresizingMask = [.width, .height] - contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil) + if #available(macOS 26.0, *) { + if let contentView = window?.contentView { + let visualEffectView = NSGlassEffectView(frame: contentView.bounds) + visualEffectView.tintColor = .clear + visualEffectView.autoresizingMask = [.width, .height] + contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil) + } + } else { + if let contentView = window?.contentView { + let visualEffectView = NSVisualEffectView(frame: contentView.bounds) + visualEffectView.blendingMode = .behindWindow + visualEffectView.material = .underWindowBackground + visualEffectView.state = .active + visualEffectView.autoresizingMask = [.width, .height] + contentView.addSubview(visualEffectView, positioned: .below, relativeTo: nil) + } } } diff --git a/Mac/MainWindow/Detail/DetailWebView.swift b/Mac/MainWindow/Detail/DetailWebView.swift index 97e5c5a5e..7752cd766 100644 --- a/Mac/MainWindow/Detail/DetailWebView.swift +++ b/Mac/MainWindow/Detail/DetailWebView.swift @@ -132,9 +132,11 @@ private extension DetailWebView { } func updateObscuredContentInsets() { - let updatedObscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0) - if obscuredContentInsets != updatedObscuredContentInsets { - obscuredContentInsets = updatedObscuredContentInsets + if #available(macOS 26.0, *) { + let updatedObscuredContentInsets = NSEdgeInsets(top: toolbarHeight, left: 0, bottom: 0, right: 0) + if obscuredContentInsets != updatedObscuredContentInsets { + obscuredContentInsets = updatedObscuredContentInsets + } } } } diff --git a/Mac/MainWindow/MainWindowController.swift b/Mac/MainWindow/MainWindowController.swift index 6b39d9c3b..191ac9317 100644 --- a/Mac/MainWindow/MainWindowController.swift +++ b/Mac/MainWindow/MainWindowController.swift @@ -94,7 +94,9 @@ final class MainWindowController: NSWindowController, NSUserInterfaceValidations timelineContainerViewController = splitViewController?.splitViewItems[1].viewController as? TimelineContainerViewController timelineContainerViewController!.delegate = self - splitViewController?.splitViewItems[1].automaticallyAdjustsSafeAreaInsets = true + if #available(macOS 26.0, *) { + splitViewController?.splitViewItems[1].automaticallyAdjustsSafeAreaInsets = true + } detailViewController = splitViewController?.splitViewItems[2].viewController as? DetailViewController diff --git a/Modules/Account/Package.swift b/Modules/Account/Package.swift index 21baad4a5..adc73a411 100644 --- a/Modules/Account/Package.swift +++ b/Modules/Account/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Account", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "Account", diff --git a/Modules/Articles/Package.swift b/Modules/Articles/Package.swift index e05bf078b..0de0b468b 100644 --- a/Modules/Articles/Package.swift +++ b/Modules/Articles/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Articles", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "Articles", diff --git a/Modules/ArticlesDatabase/Package.swift b/Modules/ArticlesDatabase/Package.swift index 56837b4b3..0762a0997 100644 --- a/Modules/ArticlesDatabase/Package.swift +++ b/Modules/ArticlesDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "ArticlesDatabase", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "ArticlesDatabase", diff --git a/Modules/CloudKitSync/Package.swift b/Modules/CloudKitSync/Package.swift index 09281319a..0fe53ffb5 100644 --- a/Modules/CloudKitSync/Package.swift +++ b/Modules/CloudKitSync/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "CloudKitSync", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "CloudKitSync", diff --git a/Modules/FeedFinder/Package.swift b/Modules/FeedFinder/Package.swift index 423d3c599..50908b019 100644 --- a/Modules/FeedFinder/Package.swift +++ b/Modules/FeedFinder/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "FeedFinder", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "FeedFinder", diff --git a/Modules/NewsBlur/Package.swift b/Modules/NewsBlur/Package.swift index 7238dd5fe..1e0b48c77 100644 --- a/Modules/NewsBlur/Package.swift +++ b/Modules/NewsBlur/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "NewsBlur", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "NewsBlur", diff --git a/Modules/RSCore/Package.swift b/Modules/RSCore/Package.swift index 613504059..036cd611b 100644 --- a/Modules/RSCore/Package.swift +++ b/Modules/RSCore/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSCore", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], 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 d4204ddda..9b8315c72 100644 --- a/Modules/RSDatabase/Package.swift +++ b/Modules/RSDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSDatabase", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "RSDatabase", diff --git a/Modules/RSMarkdown/Package.swift b/Modules/RSMarkdown/Package.swift index 9dc8f3a27..49bf3595f 100644 --- a/Modules/RSMarkdown/Package.swift +++ b/Modules/RSMarkdown/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSMarkdown", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "RSMarkdown", diff --git a/Modules/RSParser/Package.swift b/Modules/RSParser/Package.swift index 57b81f16e..2a420bb7b 100644 --- a/Modules/RSParser/Package.swift +++ b/Modules/RSParser/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSParser", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "RSParser", diff --git a/Modules/RSTree/Package.swift b/Modules/RSTree/Package.swift index ddee8ba52..62957b18a 100644 --- a/Modules/RSTree/Package.swift +++ b/Modules/RSTree/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSTree", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "RSTree", diff --git a/Modules/RSWeb/Package.swift b/Modules/RSWeb/Package.swift index fe04b4be1..ae0cdfc68 100644 --- a/Modules/RSWeb/Package.swift +++ b/Modules/RSWeb/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "RSWeb", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "RSWeb", diff --git a/Modules/Secrets/Package.swift b/Modules/Secrets/Package.swift index f28edf3b8..bec2709f1 100644 --- a/Modules/Secrets/Package.swift +++ b/Modules/Secrets/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "Secrets", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "Secrets", diff --git a/Modules/SyncDatabase/Package.swift b/Modules/SyncDatabase/Package.swift index 717f58365..73fdd6feb 100644 --- a/Modules/SyncDatabase/Package.swift +++ b/Modules/SyncDatabase/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let package = Package( name: "SyncDatabase", - platforms: [.macOS(.v26), .iOS(.v26)], + platforms: [.macOS(.v15), .iOS(.v26)], products: [ .library( name: "SyncDatabase", diff --git a/xcconfig/NetNewsWire_project.xcconfig b/xcconfig/NetNewsWire_project.xcconfig index 70fc6fe66..da955504d 100644 --- a/xcconfig/NetNewsWire_project.xcconfig +++ b/xcconfig/NetNewsWire_project.xcconfig @@ -46,7 +46,7 @@ GCC_WARN_UNDECLARED_SELECTOR = YES GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE GCC_WARN_UNUSED_FUNCTION = YES GCC_WARN_UNUSED_VARIABLE = YES -MACOSX_DEPLOYMENT_TARGET = 26.0 +MACOSX_DEPLOYMENT_TARGET = 15.0 IPHONEOS_DEPLOYMENT_TARGET = 26.0 //SDKROOT = macosx SWIFT_EMIT_LOC_STRINGS = YES