Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 Dicee - iOS Dice Rolling App

A beautiful and interactive iOS app that simulates rolling two dice with realistic animations and responsive design.

✨ Features

  • Random Dice Rolling: Tap the "Roll" button to generate random dice faces (1-6)
  • Smooth Animations: Enjoy subtle button press animations and dice rotation effects
  • Responsive Design: Fully responsive layout that works on all iPhone screen sizes
  • Auto Layout: Proper constraints ensure the app looks great in both portrait and landscape
  • Vegas-Style UI: Clean, modern interface with a green felt background

🛠️ Technologies Used

  • Swift: Modern iOS development language
  • UIKit: Apple's UI framework
  • Auto Layout: Responsive design system
  • Core Animation: Smooth animations and transitions
  • Xcode Interface Builder: Visual UI design

📱 How It Works

  1. Launch the app - You'll see two dice showing face 1 and the Dicee logo
  2. Tap "Roll" - The button will animate and both dice will rotate and show random faces
  3. Enjoy - Each roll generates completely random results, just like real dice!

🎯 Key Improvements Made

Code Enhancements:

  • ✅ Fixed random dice generation (was previously sequential)
  • ✅ Added proper array bounds checking
  • ✅ Implemented smooth animations for better user experience
  • ✅ Organized code with clear comments and structure

UI Improvements:

  • ✅ Converted from fixed frames to Auto Layout constraints
  • ✅ Made the app responsive across all iPhone screen sizes
  • ✅ Added button press animations
  • ✅ Added dice rotation animations

🚀 Getting Started

  1. Open Dicee-iOS13.xcodeproj in Xcode
  2. Select your target device or simulator
  3. Build and run the project (⌘+R)
  4. Enjoy rolling the dice!

📸 App Structure

Dicee-iOS13/
├── ViewController.swift      # Main app logic
├── Main.storyboard          # UI layout with Auto Layout
├── Assets.xcassets/         # Dice images and app assets
└── Info.plist              # App configuration

🎨 Design Features

  • Green Felt Background: Authentic casino-style appearance
  • High-Quality Dice Images: Crisp, clear dice faces for numbers 1-6
  • Professional Logo: Dicee branding at the top
  • Red Roll Button: Stands out against the green background

🔧 Technical Details

  • Minimum iOS Version: iOS 13.0+
  • Target Devices: iPhone (all screen sizes)
  • Orientation Support: Portrait and Landscape
  • Memory Management: Efficient image handling and animation cleanup

Created with ❤️ using Swift and UIKit

This project demonstrates fundamental iOS development concepts including UI design, user interaction, animations, and responsive layouts.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages