1.1 KiB
1.1 KiB
HaruDanim (하루 다님) Development Guidelines
Architecture & Stack
- UI Framework: SwiftUI
- Data Storage: SwiftData
- Architecture: MVVM (Model-View-ViewModel) + Observation (
@Observable) - Minimum Target: iOS 17.0+ (to fully utilize SwiftData and new Observation framework)
Coding Conventions
- Scope Limitation: Never scan the entire project unnecessarily. Only read and edit files explicitly requested.
- Data Modeling:
- Use
@Modelmacro for all SwiftData models. - Strictly implement relationships (e.g., Action <-> Tag many-to-many, Goal -> Quest one-to-many).
- Use raw value Enums for specific types (ActionType, QuestPeriod, Direction).
- Use
- UI/UX Guidelines:
- Primary Green: Light
#2F6B4F, Dark#7FBF9E - Accent Yellow: Light
#D9A621, Dark#E8C558 - Background: Light
#FAFAF6, Dark#111512 - Use
SF Symbolsexclusively for iconography.
- Primary Green: Light
- Business Logic:
- A day boundary starts at
AppSettings.dayStartHour(default 00:00). - Sessions crossing this boundary must be saved as one
TimeSessionbut logically split when queried for statistics.
- A day boundary starts at