TaskTracker is a simple task management application built for iOS using SwiftUI and SwiftData.
The app allows users to create, track, complete, and delete tasks through a clean and minimal interface.
This project was created as a practice project for learning modern iOS development.
Users can create a new task by typing a title in the input field and pressing the Add button.
All tasks are displayed in a list interface.
Tasks can be marked as completed by tapping on them.
When a task is completed:
- The text becomes strikethrough
- A checkmark icon appears
Tasks can be deleted by swiping left on a task in the list.
Tasks are stored using SwiftData, so the data is managed using Apple's modern persistence framework.
- Swift
- SwiftUI
- SwiftData
- Xcode
- iOS Simulator
The app uses several core SwiftUI concepts:
@Statefor managing UI state@Queryto fetch tasks from SwiftData@Environment(\.modelContext)to interact with the database@Modelfor defining the data model
Each task contains:
id– unique identifiertitle– task nameisCompleted– task completion status
Handles the main UI of the application including:
- Task input field
- Add button
- Task list
- Toggle task completion
- Delete task functionality
Defines the structure of a task using SwiftData.
TaskTrackerApp.swift initializes the application and sets up the SwiftData model container.
This project was built to practice:
- SwiftUI fundamentals
- SwiftData data persistence
- State management in SwiftUI
- Building simple iOS applications
You can try the app by cloning the repository and running it in Xcode.
🧰 Requirements:
- 💻 macOS
- 🔨 Xcode
- 📱 iOS Simulator or iPhone
git clone https://github.com/GhifarMR/TaskTracker-IOS.git- Clone the repository
git clone https://github.com/GhifarMR/TaskTracker-IOS.git- Open the project in Xcode
TaskTracker.xcodeproj
-
Connect your iPhone or choose an iOS Simulator
-
Press Run (⌘R)
Ghifar MR.
GitHub:
https://github.com/GhifarMR
Source Project:
https://www.youtube.com/watch?v=ayn9CdqbI_Y&t