Your challenge this time can be easy or hard depending on how far you want to take it, but at its core the project is simple: you need to build an app that helps users roll dice then store the results they had.
At the very least you should lets users roll dice, and also let them see results from previous rolls. However, if you want to push yourself further you can try one or more of the following:
When I say “roll dice” you don’t need to create fancy 3D effects – just showing the numbers that were “rolled” is fine.
The only thing that might cause you some work is step 5: making the results flick through various values before settling on the final figure. The easiest way to tackle this is through a Timer
that gets cancelled after a certain number of calls.
While you’re working, please take a moment to remember the accessibility of your code – try using it with VoiceOver and make sure it works as well as you can make it.
Hacking with Swift+ subscribers can get a complete video solution for this checkpoint here: Solution to High Rollers. If you don’t already subscribe, you can start a free trial today.
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
Link copied to your pasteboard.