Skip to content

parth49patel/PersonalCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

🧮 SwiftUI Calculator App

A fully functional calculator built using SwiftUI with a modern UI, custom styling, and basic arithmetic operations.

🚀 Features

🎨 Beautiful UI

  • Rounded buttons with custom colors for different operations.
  • Adaptive button sizes for better user experience.
  • Gradient background for a sleek look.

🔢 Basic Calculator Functions

  • Addition, Subtraction, Multiplication, Division
  • Negation (+/-), Modulus (%), and Clear (AC) functions
  • Handles user inputs smoothly and updates the display dynamically.

📱 SwiftUI-Powered UI

  • Uses VStack and HStack to organize buttons.
  • ForEach for dynamic grid button layout.

🛠️ Technologies Used

  • SwiftUI for UI design
  • State Management (@State) to track calculations
  • Enum for Button Configuration to maintain cleaner code
  • Custom Colors to differentiate operations

📷 Screenshot

Screenshot 2024-06-05 at 23 54 57

How to Run the Project

  1. Clone the repository:
git clone https://github.com/yourusername/SwiftUICalculator.git
  1. Open the project in Xcode.
  2. Run the app on Simulator or a real device.

About

Personal Calculator using SwiftUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages