A fully functional calculator built using SwiftUI with a modern UI, custom styling, and basic arithmetic operations.
- Rounded buttons with custom colors for different operations.
- Adaptive button sizes for better user experience.
- Gradient background for a sleek look.
- Addition, Subtraction, Multiplication, Division
- Negation (
+/-
), Modulus (%
), and Clear (AC
) functions - Handles user inputs smoothly and updates the display dynamically.
- Uses
VStack
andHStack
to organize buttons. ForEach
for dynamic grid button layout.
- SwiftUI for UI design
- State Management (
@State
) to track calculations - Enum for Button Configuration to maintain cleaner code
- Custom Colors to differentiate operations

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