Roll Dice

August 18, 2021
0 commits    0 ++    0 --

Final training project from 100 Days SwiftUI Course. Thanks a lot Paul Hudson for amazing course for beginners.


You need to build an app that helps users roll dice then store the results they had.


First, Core Data was connected and configured. That allowed the storage and processing of data about the game settings and all the throws made by the player.

Next, I created a button on the Navigation Bar, which opens a sheet with dice configuration, where the user can choose their quantity and color.

I used icons from the library of iconography SF Symbols to give the dice their appearance. To get the dice to move by touch, I used gesture to my view. To achieve an approximate 3D effect, I applied rotation3DEffect, which made the dice slightly convex in shape.

Further, when the animation set the dice in motion, I quickly and discreetly changed the icon to another random value to give the throw reality and meaning. After a roll of the dice, the results are written to the database and displayed on the results view.


I successfully completed the 100 Days of SwiftUI course and earned a certificate of completion. This final project led me to my first SwiftUI development contract.

100 Days SwiftUI Course Certificate

More Projects

Mr Dicey
0 commits    0 ++    0 --

Part of the game interface of a craps app called Learn Craps. Thanks to Mike Land for the SwiftUI development contract.

January 10, 2022

Find Couple
0 commits    0 ++    0 --

A small game as a technical task for work from Arbita company.

August 13, 2021

Touch Ten
0 commits    0 ++    0 --

Simple game as a technical task for work from Gravity company.

August 18, 2021