Skip to content

Calculator is an iOS app built with Swift and UIKit to help users make simple math calculations. It follows the MVC pattern, and achieves to build the simplest project.

Notifications You must be signed in to change notification settings

icommunitycomtr/calculator-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Calculator is an iOS app built with Swift and UIKit to help users make simple math calculations. It follows the MVC pattern, and achieves to build the simplest project.

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages