final class StreakManager {
static let shared: StreakManager
func recordPlay() // ゲーム開始時
func refreshStreakOnLaunch() // 起動時 / scenePhase(.active)
}
| キー | 用途 |
|---|---|
chromatic_streak_count | 連続日数 |
chromatic_last_played_date | 最終プレイ日(YYYY-MM-DD) |
| 日数 | 色 |
|---|---|
| 0日 | 非表示(opacity=0) |
| 1-6日 | 橙 |
| 7-29日 | 金 |
| 30日+ | 赤 |
| バージョン | 日付 | 変更内容 |
|---|---|---|
| 1.0 | 2026-05-09 | 初版作成 |