Challenge: Leaderboard Data Model | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/18176818-your-first-ios-and-swiftui-app-polishing-the-app/lessons/38
1 Like

I donโ€™t get it โ€” why in video testLeaderboard pass?
In second iteration must be 300, because in startNewRound func have โ€œscore += pointsโ€. It must be 300โ€ฆ

Oh, sorry, get it โ€” mismatch scores with points.

The test fails unless you set score to โ€œ300โ€ at index โ€œ0โ€ of the second test.

I have done everything just like in the video, but my leaderboard data wonโ€™t show up when I run it on the simulator. This is confusing because the previewer shows what is supposed to be in the simulator, but nothing is showing up. I have no errors in my code. Please assist me.