---
title: "loadImage(completionHandler:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengedefinition/loadimage(completionhandler:)"
---

# loadImage(completionHandler:)

Loads the image set on the challenge definition, which may be nil if none was set.

## Declaration

```swift
func loadImage(completionHandler: @escaping @Sendable (UIImage?, (any Error)?) -> Void)
```

```swift
var image: UIImage? { get async throws }
```

```swift
func loadImage(completionHandler: @escaping @Sendable (NSImage?, (any Error)?) -> Void)
```

```swift
var image: NSImage? { get async throws }
```

## See Also

### Getting the display properties and image

- [title](gamekit/gkchallengedefinition/title.md)
- [details](gamekit/gkchallengedefinition/details.md)
