---
title: error
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/asyncimagephase/error
---

# error

The error that occurred when attempting to load an image, if any.

## Declaration

```swift
var error: (any Error)? { get }
```
