A SwiftUI dice-rolling app that lets you roll 1 to 5 dice simultaneously with animated SF Symbol die faces.
DiceRoller is an interactive iOS app where users can dynamically add or remove dice (up to 5) and roll them all at once. Each die displays a random face using SF Symbols with smooth animations.
- Roll 1 to 5 dice simultaneously
- Add and remove dice dynamically (min 1, max 5)
- Animated roll transitions using
withAnimation - SF Symbol die faces (
die.face.1.fillthroughdie.face.6.fill) - Custom dark background color theme
- Language: Swift
- Framework: SwiftUI
- Platform: iOS / iPadOS
- Testing: Swift Testing + XCTest
- IDE: Xcode
DiceRoller/
├── DiceRollerApp.swift # App entry point
├── ContentView.swift # Main UI with dice controls
├── DiceView.swift # Individual die component
└── Assets.xcassets/
└── AppBackground.colorset/
- Clone the repository
- Open
DiceRoller.xcodeprojin Xcode - Build and run on a simulator or device
swift swiftui ios dice animation sf-symbols learning-project