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

# loadImage(completionHandler:)

Asynchronously load the image. Error will be nil on success.

## 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/gkgameactivitydefinition/title.md)
- [details](gamekit/gkgameactivitydefinition/details.md)
- [defaultProperties](gamekit/gkgameactivitydefinition/defaultproperties.md)
