@@ -25,7 +25,7 @@ import UniformTypeIdentifiers
2525/// to eagerly serialize them, which is unnecessarily expensive if we know
2626/// they're actually concurrency-safe.
2727/// 2. We would have no place to store metadata such as the encoding quality
28- /// (although in the future we may introduce a "metadata" associated type to
28+ /// (although in the future we may introduce a "metadata" associated type to
2929/// `Attachable` that could store that info.)
3030/// 3. `Attachable` has a requirement with `Self` in non-parameter, non-return
3131/// position. As far as Swift is concerned, a non-final class cannot satisfy
@@ -48,14 +48,14 @@ import UniformTypeIdentifiers
4848///
4949/// - [`CGImage`](https://developer.apple.com/documentation/coregraphics/cgimage)
5050@_spi ( Experimental)
51- public struct _AttachableImageContainer < ImageClass > : Sendable where ImageClass : AttachableAsCGImage {
51+ public struct _AttachableImageContainer < Image > : Sendable where Image : AttachableAsCGImage {
5252 /// The underlying image.
5353 ///
5454 /// `CGImage` and `UIImage` are sendable, but `NSImage` is not. `NSImage`
5555 /// instances can be created from closures that are run at rendering time.
5656 /// The AppKit cross-import overlay is responsible for ensuring that any
5757 /// instances of this type it creates hold "safe" `NSImage` instances.
58- nonisolated ( unsafe) var image: ImageClass
58+ nonisolated ( unsafe) var image: Image
5959
6060 /// The encoding quality to use when encoding the represented image.
6161 public var encodingQuality : Float
@@ -77,7 +77,7 @@ public struct _AttachableImageContainer<ImageClass>: Sendable where ImageClass:
7777 }
7878 }
7979
80- init ( image: ImageClass , encodingQuality: Float ) {
80+ init ( image: Image , encodingQuality: Float ) {
8181 self . image = image. _makeCopyForAttachment ( )
8282 self . encodingQuality = encodingQuality
8383 }
@@ -106,7 +106,7 @@ extension UTType {
106106}
107107
108108extension _AttachableImageContainer : AttachableContainer {
109- public var attachableValue : ImageClass {
109+ public var attachableValue : Image {
110110 image
111111 }
112112
0 commit comments