FlowTakt

FlowTakt 流刻

FlowTakt Icon

专注、计划、习惯,一气呵成。
一款融合番茄钟、任务管理、习惯追踪与自由计时的 iOS 效率工具。

Download on the App Store   Platform Swift License


截图

专注 任务 习惯 统计 设置


功能

🍅 番茄钟专注

📋 任务管理

📅 日历日程

✅ 习惯追踪

⏱️ 自由计时器

📊 统计分析

🏆 成就系统

🌐 其他


技术栈

类别 技术
UI SwiftUI
数据持久化 CoreData + NSPersistentCloudKitContainer
同步 CloudKit (iCloud)
响应式 Combine
音频 AVFoundation (实时合成白噪音)
通知 UserNotifications
本地化 运行时双语 (zh-Hans / en)
最低系统 iOS 16.0
第三方依赖 — 纯原生实现

架构

┌─────────────────────────────────┐
│          SwiftUI Views           │  界面层
├─────────────────────────────────┤
│          ViewModels              │  状态管理 (ObservableObject)
├─────────────────────────────────┤
│          Services                │  业务逻辑 (协议 + 实现)
│  TimerManager / FocusService /   │
│  TaskService / HabitService …   │
├─────────────────────────────────┤
│     PersistenceController        │  CoreData + CloudKit
└─────────────────────────────────┘

采用 MVVM + Service Layer + Dependency Injection 架构:


构建与运行

前提条件

步骤

git clone https://github.com/jerrynxk/FlowTakt.git
cd FlowTakt
open FlowTakt.xcodeproj
  1. 在 Xcode 中打开项目
  2. 选择 FlowTakt scheme,目标设备为你的 iPhone 或模拟器
  3. 在 Signing & Capabilities 中选择你的 Team
  4. 如有需要,修改 Bundle Identifier(默认 com.flowtakt.FlowTakt
  5. ⌘R 运行

注意:iCloud 同步和推送通知需要付费 Apple Developer 账号。如仅使用模拟器调试,这些功能会自动降级为本地模式。


项目结构

FlowTakt/
├── App/                    # 入口 + DI 容器
│   ├── FlowTaktApp.swift
│   └── AppDependency.swift
├── Data/                   # CoreData 模型 + 扩展
│   ├── PersistenceController.swift
│   ├── FlowTakt.xcdatamodeld/
│   ├── Entities/
│   └── Extensions/
├── Services/               # 业务服务层 (11 个 Service)
├── ViewModels/             # 视图模型层 (8 个 ViewModel)
├── Views/                  # SwiftUI 视图
│   ├── Focus/              # 番茄钟
│   ├── Task/               # 任务
│   ├── Stats/              # 统计
│   ├── Achievements/       # 成就
│   ├── Settings/           # 设置
│   └── ...                 # 习惯 / 日历 / 计时器
├── Extensions/             # Swift 扩展
└── Utils/                  # 常量 / 本地化 / 触觉

License

本项目采用 MIT License 开源。你可以自由使用、修改、分发,包括商业用途。


联系