Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.69 KB

File metadata and controls

56 lines (43 loc) · 1.69 KB

Calculator Example App

A simple calculator app built with Swift for iOS. This project demonstrates basic arithmetic operations and UI implementation using UIKit.

Features

  • Perform basic arithmetic operations (+, -, *, /)
  • User-friendly interface
  • Responsive UI with Auto Layout
  • Supports decimal numbers and sign change
  • Prevents division by zero with an alert message

Tools & Technologies Used

  • Swift
  • UIKit
  • Design Pattern Architecture: MVC
  • Auto Layout
  • Stack View (Horizontal & Vertical)
  • Buttons & Labels (Storyboard-based UI)

Requirements

  • Xcode 16.1 or later
  • iOS 17.0 minimum deployment
  • Swift 5+

Functionality Overview

  • Number Input: Adds pressed digits to the display.
  • Operations: Supports addition, subtraction, multiplication, and division.
  • Equal Button: Computes the result of the current operation.
  • Clear Button: Resets the calculator.
  • Percentage Button: Converts the current number into a percentage.
  • Sign Change Button: Toggles between positive and negative values.
  • Decimal Support: Allows floating-point calculations.

Installation

  1. Clone the repository:
    git clone https://github.com/icommunitycomtr/calculator-example-app.git
  2. Open the project in Xcode:
    cd calculator-example-app
    open CalculatorExampleApp.xcodeproj
  3. Build and run the app on a simulator or a real device.

Screenshots

iPhone16Pro iPhoneSE