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
- Host: GitHub
- URL: https://github.com/dsdipto7/counterapp
- Owner: DsDipto7
- Created: 2024-11-13T12:09:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-21T10:08:00.000Z (over 1 year ago)
- Last Synced: 2025-03-20T07:18:35.300Z (12 months ago)
- Topics: ios, swift, swiftui
- Language: Swift
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
# 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.