How juliandr14/actitracker-swift works
Overall Project Type and Purpose
• ActiTracker is a native iOS app developed in Swift that leverages modern iOS frameworks (such as SwiftUI and Core Data). Its main purpose is to register activities, track the time spent on each activity, and generate daily reports. It further integrates with iPhone’s native Activity Life for a connected experience.
Analyzing the File Structure
• The project is organized into multiple directories:
• The main app files are under the “ActiTracker” folder, including the entry point (ActiTrackerApp.swift) and configuration files (Info.plist, Launch Screen.storyboard).
• The “Core” folder contains components, data handling, extensions, and model files. This is where the business logic and persistent storage fundamentals (via Core Data in ActivityModel.xcdatamodeld) reside.
• The “Features” directory is subdivided further into modules for different features such as “AddActivity”, “Home”, “Reports”, “Settings”, and “Timer”. Each feature is split into Components, ViewModels, and Views. This separation reflects a clean architectural design (resembling an MVVM or similar pattern).
• There is also a “MyExtension” folder that represents an iOS extension (likely a widget or another related extension) with its own UI, assets, and logic.
• The presence of structured directories like “Components”, “ViewModel”, and “Views” for each feature indicates an emphasis on separation of concerns and modular design.