---
title: imageFormat
framework: testing
role: symbol
role_heading: Instance Property
path: testing/attachment/imageformat
---

# imageFormat

The image format to use when encoding the represented image, if specified.

## Declaration

```swift
var imageFormat: AttachableImageFormat? { get }
```
