Skip to content

Commit 0dad370

Browse files
committed
init(pathExtension:) is covered by ST-0015 on both platforms
1 parent a91c754 commit 0dad370

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Sources/Overlays/_Testing_CoreGraphics/Attachments/AttachableImageFormat+UTType.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ extension AttachableImageFormat {
107107
)
108108
self.init(kind: .systemValue(contentType), encodingQuality: encodingQuality)
109109
}
110-
}
111110

112-
@available(_uttypesAPI, *)
113-
@_spi(Experimental) // STOP: not part of ST-0014
114-
extension AttachableImageFormat {
115111
/// Construct an instance of this type with the given path extension and
116112
/// encoding quality.
117113
///
@@ -132,6 +128,10 @@ extension AttachableImageFormat {
132128
/// must conform to [`UTType.image`](https://developer.apple.com/documentation/uniformtypeidentifiers/uttype-swift.struct/image).
133129
/// - On Windows, there must be a corresponding subclass of [`IWICBitmapEncoder`](https://learn.microsoft.com/en-us/windows/win32/api/wincodec/nn-wincodec-iwicbitmapencoder)
134130
/// registered with Windows Imaging Component.
131+
///
132+
/// @Metadata {
133+
/// @Available(Swift, introduced: 6.3)
134+
/// }
135135
public init?(pathExtension: String, encodingQuality: Float = 1.0) {
136136
let pathExtension = pathExtension.drop { $0 == "." }
137137

Sources/Overlays/_Testing_WinSDK/Attachments/AttachableImageFormat+CLSID.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ extension AttachableImageFormat {
306306
/// must conform to [`UTType.image`](https://developer.apple.com/documentation/uniformtypeidentifiers/uttype-swift.struct/image).
307307
/// - On Windows, there must be a corresponding subclass of [`IWICBitmapEncoder`](https://learn.microsoft.com/en-us/windows/win32/api/wincodec/nn-wincodec-iwicbitmapencoder)
308308
/// registered with Windows Imaging Component.
309+
///
310+
/// @Metadata {
311+
/// @Available(Swift, introduced: 6.3)
312+
/// }
309313
public init?(pathExtension: String, encodingQuality: Float = 1.0) {
310314
let pathExtension = pathExtension.drop { $0 == "." }
311315

0 commit comments

Comments
 (0)