From 47b536cb990ee08cb71e40aeeb1e4b455c6faa46 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Wed, 2 Jul 2025 15:14:06 -0400 Subject: [PATCH] Fixes to the AppKit/`NSImage` overlay. The PR (#869) that just added the AppKit overlay for `NSImage` was a bit stale. This PR corrects a couple of bugs that snuck in due to its age and the resulting bit rot. --- Package.swift | 2 +- .../Attachments/NSImage+AttachableAsCGImage.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index 5d08997e0..6a86f6774 100644 --- a/Package.swift +++ b/Package.swift @@ -198,7 +198,7 @@ let package = Package( "_Testing_CoreGraphics", ], path: "Sources/Overlays/_Testing_AppKit", - swiftSettings: .packageSettings + swiftSettings: .packageSettings + .enableLibraryEvolution() ), .target( name: "_Testing_CoreGraphics", diff --git a/Sources/Overlays/_Testing_AppKit/Attachments/NSImage+AttachableAsCGImage.swift b/Sources/Overlays/_Testing_AppKit/Attachments/NSImage+AttachableAsCGImage.swift index 529dfc724..7e5c9363d 100644 --- a/Sources/Overlays/_Testing_AppKit/Attachments/NSImage+AttachableAsCGImage.swift +++ b/Sources/Overlays/_Testing_AppKit/Attachments/NSImage+AttachableAsCGImage.swift @@ -10,7 +10,7 @@ #if SWT_TARGET_OS_APPLE && canImport(AppKit) public import AppKit -@_spi(ForSwiftTestingOnly) @_spi(Experimental) public import _Testing_CoreGraphics +@_spi(Experimental) public import _Testing_CoreGraphics @_spi(Experimental) extension NSImage: AttachableAsCGImage {