<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INImage/fetchUIImage(completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INImage(im)fetchUIImageWithCompletion:"
  },
  "title" : "fetchUIImage(completion:)"
}
-->

# fetchUIImage(completion:)

Fetches the image and provides it to the specified completion handler.

```
func fetchUIImage(completion: @escaping @Sendable (UIImage?) -> Void)
```

```
func fetchUIImage() async -> UIImage?
```

## Parameters

`completion`

The completion handler that executes when the image is available. The handler has no return value and takes the following parameter:

- `image`: A <doc://com.apple.documentation/documentation/UIKit/UIImage> that contains the image data. If there’s an error, this parameter is `nil`.

## Discussion

Use this method to fetch an instance of <doc://com.apple.documentation/documentation/UIKit/UIImage> that contains the corresponding image data. Provide a completion handler; otherwise, calling this method does nothing. The handler executes on the same thread that invokes the method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)