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

# loadImage(completionHandler:)

Loads the localized image that you associate with the leaderboard set.

## Declaration

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

```swift
func loadImage() async throws -> UIImage
```

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

```swift
func loadImage() async throws -> NSImage
```

## Parameters

- `completionHandler`: A block that GameKit calls when this method completes the request. The block receives the following parameters:

## See Also

### Loading Leaderboard Sets

- [loadLeaderboardSets(completionHandler:)](gamekit/gkleaderboardset/loadleaderboardsets(completionhandler:).md)
- [loadLeaderboards(handler:)](gamekit/gkleaderboardset/loadleaderboards(handler:).md)
- [loadLeaderboards(completionHandler:)](gamekit/gkleaderboardset/loadleaderboards(completionhandler:).md)
