Skip to content

GhifarMR/TaskTracker-IOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

📱 TaskTracker iOS

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.


📸 Screenshots

📲 Open With iPhone

iPhone Home

🏠 Main Menu

main menu tracker app

➕ Add Task

add task tracker app

✅ Task Added

task added tracker app

✔️ Task Completed

task finished tracker app

🗑️ Delete Task

delete task tracker app

✨ Features

➕ Add Tasks

Users can create a new task by typing a title in the input field and pressing the Add button.

📋 Task List

All tasks are displayed in a list interface.

✅ Complete Tasks

Tasks can be marked as completed by tapping on them.
When a task is completed:

  • The text becomes strikethrough
  • A checkmark icon appears

🗑️ Delete Tasks

Tasks can be deleted by swiping left on a task in the list.

💾 Persistent Storage

Tasks are stored using SwiftData, so the data is managed using Apple's modern persistence framework.


🛠 Technologies Used

  • Swift
  • SwiftUI
  • SwiftData
  • Xcode
  • iOS Simulator

⚙️ How It Works

The app uses several core SwiftUI concepts:

  • @State for managing UI state
  • @Query to fetch tasks from SwiftData
  • @Environment(\.modelContext) to interact with the database
  • @Model for defining the data model

🧩 Data Model

Each task contains:

  • id – unique identifier
  • title – task name
  • isCompleted – task completion status

🏗 Main Components

📄 ContentView

Handles the main UI of the application including:

  • Task input field
  • Add button
  • Task list
  • Toggle task completion
  • Delete task functionality

🗂 Task Model

Defines the structure of a task using SwiftData.

🚀 App Entry Point

TaskTrackerApp.swift initializes the application and sets up the SwiftData model container.


🎯 Project Purpose

This project was built to practice:

  • SwiftUI fundamentals
  • SwiftData data persistence
  • State management in SwiftUI
  • Building simple iOS applications

🧰 Try the App

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

🚀 Run the App

  1. Clone the repository
git clone https://github.com/GhifarMR/TaskTracker-IOS.git
  1. Open the project in Xcode

TaskTracker.xcodeproj

  1. Connect your iPhone or choose an iOS Simulator

  2. Press Run (⌘R)


👨‍💻 Author

Ghifar MR.

GitHub:
https://github.com/GhifarMR

Source Project:
https://www.youtube.com/watch?v=ayn9CdqbI_Y&t

About

Task Tracker application for IOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages