mycode/myApp/HaruDanim/CLAUDE.md
2026-07-06 00:56:00 +09:00

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

  1. Scope Limitation: Never scan the entire project unnecessarily. Only read and edit files explicitly requested.
  2. Data Modeling:
    • Use @Model macro 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).
  3. UI/UX Guidelines:
    • Primary Green: Light #2F6B4F, Dark #7FBF9E
    • Accent Yellow: Light #D9A621, Dark #E8C558
    • Background: Light #FAFAF6, Dark #111512
    • Use SF Symbols exclusively for iconography.
  4. Business Logic:
    • A day boundary starts at AppSettings.dayStartHour (default 00:00).
    • Sessions crossing this boundary must be saved as one TimeSession but logically split when queried for statistics.