This proposal extends the Swift Testing Attachments API (previous discussion: [Pitch] Attachments) with support for the Transferable protocol from Apple's system CoreTransferable framework (Core Transferable | Apple Developer Documentation).
Swift Testing already provides first-class attachment support for types conforming to NSSecureCoding and Encodable, offering a default serialization path that lets values be attached to a test with minimal boilerplate. Transferable fills a similar role โ it defines a flexible, declarative way to serialize Swift values into data blobs or files, and many system-provided types across Apple platforms already conform to it.
With the built-in Transferable support alongside the existing NSSecureCoding and Encodable support, test authors gain the ability to attach a much broader set of types โ including many system types โ without any additional serialization code.
Full proposal: ST-NNNN `Transferable` Attachments by aronskaya ยท Pull Request #3155 ยท swiftlang/swift-evolution ยท GitHub