A simple TaskList App built using SwiftUI.
- Sheet -> User can add task by clicking the Add Task button.
- UserDefaults -> The tasks are saved in an array which is stored as UserDefaults on the device.
- @Environment Dismiss -> The Add Task sheet has the @Environment(.dismiss) to dismiss the sheet.
- @Environment Color Scheme -> The backgound color of a task changes based on whether it is completed or not.
The app uses the @Environment(.colorScheme) to determine the color of the background of the completed task, color of the text and the dismiss button in Add Task sheet. The app also supports light and dark mode bt usnig the @Environment(.colorScheme).
- Light Mode
- Dark Mode
- Add Task