Contents

AttachableImageFormat

A type describing image formats supported by the system that can be used when attaching an image to a test.

Declaration

struct AttachableImageFormat

Overview

When you attach an image to a test, you can pass an instance of this type to record(_:named:as:sourceLocation:) so that the testing library knows the image format you’d like to use. If you don’t pass an instance of this type, the testing library infers which format to use based on the attachment’s preferred name.

The testing library always supports the PNG and JPEG image formats. The set of additional supported image formats is platform-specific:

Topics

Initializers

Instance Properties

Type Properties

Type Methods

Default Implementations

See Also

Attaching images to tests