This project is a simple ToDo application developed in Swift using SwiftUI for the user interface and SwiftData for local data persistence.
The code is structured into reusable and logically separated components:
-
ToDoApp- This is the entry point of the application. -
SharedTaskList- A shared model conforming to ObservableObject that manages the list of all tasks. It provides functions for adding, removing, filtering, and updating tasks. -
Task- A data model representing an individual task. -
TaskPriority- An enumeration defining different priority levels for tasks (e.g., low, medium, high). -
AllTasksView- A main view displaying a list of all tasks. Tasks can be filtered by status or priority. -
NewTaskView- A form-based view for creating new tasks. -
TaskDetailView- A detail view allowing users to view task information. -
MotivationalQuote- A utility that randomly selects a motivational quote to display within the app -
ContentView- The container view that sets up the main layout of the app.
To run the application:
- Clone or download the project.
- Open ToDoApp.xcodeproj in Xcode.
- Build and run the app using the Xcode simulator or a physical iOS device.
- Use the "Add" button to create a new task, fill in the fields, and save.
- Navigate through the app to view, filter as needed.