Contents

AttachableAsImage

A protocol describing images that can be converted to instances of Attachment.

Declaration

protocol AttachableAsImage

Overview

Instances of types conforming to this protocol do not themselves conform to Attachable. Instead, the testing library provides additional initializers on Attachment that take instances of such types and handle converting them to image data when needed.

You do not generally need to add your own conformances to this protocol. For a list of types that automatically conform to this protocol, see Attach images.

Topics

Instance Methods

See Also

Attaching images to tests