# Your First iOS & SwiftUI App: Polishing the App, Episode 39: Connect the Leaderboard | raywenderlich.com

**URL:** <https://forums.kodeco.com/t/your-first-ios-swiftui-app-polishing-the-app-episode-39-connect-the-leaderboard-raywenderlich-com/165932>\
**Category:** 🎓 Courses & Articles\
**Created:** [March 4, 2022, 9:59am UTC](https://forums.kodeco.com/t/your-first-ios-swiftui-app-polishing-the-app-episode-39-connect-the-leaderboard-raywenderlich-com/165932 "2022-03-04T09:59:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwenderlich](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/rwenderlich/32/108604_2.png) [@rwenderlich](https://forums.kodeco.com/u/rwenderlich)\
**Post date:** [March 4, 2022, 9:59am UTC](https://forums.kodeco.com/t/your-first-ios-swiftui-app-polishing-the-app-episode-39-connect-the-leaderboard-raywenderlich-com/165932/1 "2022-03-04T09:59:00Z")

</div>

Learn how to hook up the leaderboard data model to the leaderboard view.

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/28797859-your-first-ios-swiftui-app-polishing-the-app/lessons/39](https://www.raywenderlich.com/28797859-your-first-ios-swiftui-app-polishing-the-app/lessons/39)

---

<div class="post-metadata">

**Author:** ![bobdela](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bobdela/32/110413_2.png) [@bobdela](https://forums.kodeco.com/u/bobdela)\
**Post date:** [August 19, 2022, 7:06pm UTC](https://forums.kodeco.com/t/your-first-ios-swiftui-app-polishing-the-app-episode-39-connect-the-leaderboard-raywenderlich-com/165932/2 "2022-08-19T19:06:12Z")

</div>

Errata suggestion:

```auto
VStack(spacing: 10) {
  ForEach(game.leaderboardEntries.indices) { i in
    let leaderboardEntry = game.leaderboardEntries[i]
    RowView(index: i + 1, score: leaderboardEntry.points, date: leaderboardEntry.date)
  }
}

```

should be (to suppress a warning)

```auto
VStack(spacing: 10) {
  ForEach(game.leaderboardEntries.indices, id: .\self) { i in
    let leaderboardEntry = game.leaderboardEntries[i]
    RowView(index: i + 1, score: leaderboardEntry.points, date: leaderboardEntry.date)
  }
}

```

---

<div class="post-metadata">

**Author:** ![bobdela](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bobdela/32/110413_2.png) [@bobdela](https://forums.kodeco.com/u/bobdela)\
**Post date:** [August 19, 2022, 7:13pm UTC](https://forums.kodeco.com/t/your-first-ios-swiftui-app-polishing-the-app-episode-39-connect-the-leaderboard-raywenderlich-com/165932/3 "2022-08-19T19:13:01Z")

</div>

Transcript typo suggestion: the parameter name in the test data init should be score instead of points.
