An open API service indexing awesome lists of open source software.

https://github.com/dsdipto7/counterapp

A simple iOS assignment in Swift
https://github.com/dsdipto7/counterapp

ios swift swiftui

Last synced: 6 months ago
JSON representation

A simple iOS assignment in Swift

Awesome Lists containing this project

README

          

# Assignment Submitted by Dipto Saha
# Roll: 2007119
# CounterApp

This project is a simple counter application created as part of the Mobile Computing Laboratory assignment. Developed in Swift using SwiftUI, this app allows users to increment a counter with each tap and reset it to zero with a dedicated button.

# Project Snapshot

### The images below illustrate various states of the counter:

- Initial State (Count = 0)
- Incremented State (Count = 8 and 119)
- Reset State (Count = 0 after reset)


Initial State
Incremented State
Reset State


# Components
### Detailed Component Breakdown
- #### Counter Display:

The counter variable, marked with @State, holds the current count, which is reactive to changes and updates the UI automatically.

- #### Reset Button:

Resets the counter to zero when tapped.
Styled with a red background, white text, and rounded corners.

- #### Count Button:

Increments the counter by 1 each time it is tapped.
Styled with a blue background, white text, and rounded corners.
# Features

- #### Increment Counter:
Tapping the "Count" button increments the displayed counter by one.
- #### Reset Counter:
Tapping the "Reset" button resets the counter back to zero, clearing any prior count.