Develop in Swift Tutorials - Buttons and state: Update the UI with state
In this tutorial I learned:
- how to use the @State property wrapper to create reactive data that SwiftUI monitors, automatically updating the User Interface whenever the underlying values change;
- how to use ForEach to display a dynamic value of dice;
- and how to set boundaries for the amount of dice in between [1, 5]