Skip to content

Commit 8fa957a

Browse files
committed
Add NSImage links to documentation
1 parent 370d226 commit 8fa957a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Sources/Overlays/_Testing_CoreGraphics/Attachments/AttachableAsCGImage.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ private import ImageIO
2424
/// be attached to a test:
2525
///
2626
/// - [`CGImage`](https://developer.apple.com/documentation/coregraphics/cgimage)
27+
/// - [`NSImage`](https://developer.apple.com/documentation/appkit/nsimage)
28+
/// (macOS)
2729
///
2830
/// You do not generally need to add your own conformances to this protocol. If
2931
/// you have an image in another format that needs to be attached to a test,

Sources/Overlays/_Testing_CoreGraphics/Attachments/Attachment+AttachableAsCGImage.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ extension Attachment {
7171
/// ``AttachableAsCGImage`` protocol and can be attached to a test:
7272
///
7373
/// - [`CGImage`](https://developer.apple.com/documentation/coregraphics/cgimage)
74+
/// - [`NSImage`](https://developer.apple.com/documentation/appkit/nsimage)
75+
/// (macOS)
7476
@_spi(Experimental)
7577
@available(_uttypesAPI, *)
7678
public init<T>(
@@ -103,6 +105,8 @@ extension Attachment {
103105
/// ``AttachableAsCGImage`` protocol and can be attached to a test:
104106
///
105107
/// - [`CGImage`](https://developer.apple.com/documentation/coregraphics/cgimage)
108+
/// - [`NSImage`](https://developer.apple.com/documentation/appkit/nsimage)
109+
/// (macOS)
106110
@_spi(Experimental)
107111
public init<T>(
108112
_ attachableValue: T,

Sources/Overlays/_Testing_CoreGraphics/Attachments/_AttachableImageWrapper.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ import UniformTypeIdentifiers
4747
/// to the ``AttachableAsCGImage`` protocol and can be attached to a test:
4848
///
4949
/// - [`CGImage`](https://developer.apple.com/documentation/coregraphics/cgimage)
50+
/// - [`NSImage`](https://developer.apple.com/documentation/appkit/nsimage)
51+
/// (macOS)
5052
@_spi(Experimental)
5153
public struct _AttachableImageWrapper<Image>: Sendable where Image: AttachableAsCGImage {
5254
/// The underlying image.

0 commit comments

Comments
 (0)